hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/arch/mips/alchemy/devboards/db1000.c
....@@ -14,7 +14,6 @@
1414 #include <linux/interrupt.h>
1515 #include <linux/leds.h>
1616 #include <linux/mmc/host.h>
17
-#include <linux/module.h>
1817 #include <linux/platform_device.h>
1918 #include <linux/pm.h>
2019 #include <linux/spi/spi.h>
....@@ -165,14 +164,10 @@
165164
166165 /******************************************************************************/
167166
167
+#ifdef CONFIG_MMC_AU1X
168168 static irqreturn_t db1100_mmc_cd(int irq, void *ptr)
169169 {
170
- void (*mmc_cd)(struct mmc_host *, unsigned long);
171
- /* link against CONFIG_MMC=m */
172
- mmc_cd = symbol_get(mmc_detect_change);
173
- mmc_cd(ptr, msecs_to_jiffies(500));
174
- symbol_put(mmc_detect_change);
175
-
170
+ mmc_detect_change(ptr, msecs_to_jiffies(500));
176171 return IRQ_HANDLED;
177172 }
178173
....@@ -375,6 +370,7 @@
375370 .num_resources = ARRAY_SIZE(au1100_mmc1_res),
376371 .resource = au1100_mmc1_res,
377372 };
373
+#endif /* CONFIG_MMC_AU1X */
378374
379375 /******************************************************************************/
380376
....@@ -438,8 +434,10 @@
438434
439435 static struct platform_device *db1100_devs[] = {
440436 &au1100_lcd_device,
437
+#ifdef CONFIG_MMC_AU1X
441438 &db1100_mmc0_dev,
442439 &db1100_mmc1_dev,
440
+#endif
443441 };
444442
445443 int __init db1000_dev_setup(void)