MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Sep 2023 07:06:56 +0000 (09:06 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 25 Sep 2023 09:43:55 +0000 (11:43 +0200)
commitef8f8f04a0b25e8f294b24350e8463a8d6a9ba0b
tree21cff629de91a10c83fe417cb22d29857f36d0a5
parent6465e260f48790807eef06b583b38ca9789b6072
MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled

While commit d4a5c59a955b ("mmc: au1xmmc: force non-modular build and
remove symbol_get usage") to be built in, it can still build a kernel
without MMC support and thuse no mmc_detect_change symbol at all.

Add ifdefs to build the mmc support code in the alchemy arch code
conditional on mmc support.

Fixes: d4a5c59a955b ("mmc: au1xmmc: force non-modular build and remove symbol_get usage")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/alchemy/devboards/db1000.c
arch/mips/alchemy/devboards/db1200.c
arch/mips/alchemy/devboards/db1300.c