hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/mips/alchemy/devboards/db1300.c
....@@ -17,7 +17,6 @@
1717 #include <linux/interrupt.h>
1818 #include <linux/ata_platform.h>
1919 #include <linux/mmc/host.h>
20
-#include <linux/module.h>
2120 #include <linux/mtd/mtd.h>
2221 #include <linux/mtd/platnand.h>
2322 #include <linux/platform_device.h>
....@@ -451,6 +450,7 @@
451450
452451 /**********************************************************************/
453452
453
+#ifdef CONFIG_MMC_AU1X
454454 static irqreturn_t db1300_mmc_cd(int irq, void *ptr)
455455 {
456456 disable_irq_nosync(irq);
....@@ -459,14 +459,7 @@
459459
460460 static irqreturn_t db1300_mmc_cdfn(int irq, void *ptr)
461461 {
462
- void (*mmc_cd)(struct mmc_host *, unsigned long);
463
-
464
- /* link against CONFIG_MMC=m. We can only be called once MMC core has
465
- * initialized the controller, so symbol_get() should always succeed.
466
- */
467
- mmc_cd = symbol_get(mmc_detect_change);
468
- mmc_cd(ptr, msecs_to_jiffies(200));
469
- symbol_put(mmc_detect_change);
462
+ mmc_detect_change(ptr, msecs_to_jiffies(200));
470463
471464 msleep(100); /* debounce */
472465 if (irq == DB1300_SD1_INSERT_INT)
....@@ -640,6 +633,7 @@
640633 .resource = au1300_sd0_res,
641634 .num_resources = ARRAY_SIZE(au1300_sd0_res),
642635 };
636
+#endif /* CONFIG_MMC_AU1X */
643637
644638 /**********************************************************************/
645639
....@@ -784,8 +778,10 @@
784778 &db1300_5waysw_dev,
785779 &db1300_nand_dev,
786780 &db1300_ide_dev,
781
+#ifdef CONFIG_MMC_AU1X
787782 &db1300_sd0_dev,
788783 &db1300_sd1_dev,
784
+#endif
789785 &db1300_lcd_dev,
790786 &db1300_ac97_dev,
791787 &db1300_i2s_dev,