diff options
author | Stephen Boyd <sboyd@kernel.org> | 2020-04-08 23:44:12 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-05-05 12:34:06 -0700 |
commit | 3fd2fdb311fab622ed95568e2a90cb02fe06227c (patch) | |
tree | e8e6af1b2023c0be33e82cde38e1e35bd637ff7c /arch/sh | |
parent | b62bc0474b9084f7de1d69adbb9bde248bbdf117 (diff) | |
download | linux-3fd2fdb311fab622ed95568e2a90cb02fe06227c.tar.bz2 |
mmc: meson-mx-sdio: Depend on OF_ADDRESS and not just OF
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 <lkp@intel.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200409064416.83340-7-sboyd@kernel.org
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions