Quoting Stephen Boyd (2020-04-08 23:44:12) > Making COMMON_CLK a visible option causes the sparc allyesconfig to fail > to build like so: > > sparc64-linux-ld: drivers/mmc/host/meson-mx-sdio.o: in function > `meson_mx_mmc_remove': > meson-mx-sdio.c:(.text+0x70): undefined reference to > `of_platform_device_destroy' > sparc64-linux-ld: drivers/mmc/host/meson-mx-sdio.o: in function > `meson_mx_mmc_probe': > meson-mx-sdio.c:(.text+0x9e4): undefined reference to > `of_platform_device_create' > sparc64-linux-ld: meson-mx-sdio.c:(.text+0xdd4): undefined reference to > `of_platform_device_destroy' > > This is because the implementation of of_platform_device_destroy() is > inside an #ifdef CONFIG_OF_ADDRESS section of drivers/of/platform.c. > This driver already depends on OF being enabled, so let's tighten that > constrain a little more so that it depends on OF_ADDRESS instead. This > way we won't try to build this driver on platforms that don't have this > function. > > Reported-by: kbuild test robot <[email protected]> > Cc: Neil Armstrong <[email protected]> > Cc: Ulf Hansson <[email protected]> > Signed-off-by: Stephen Boyd <[email protected]> > ---
Applied to clk-next

