.. | .. |
---|
14 | 14 | #include <linux/interrupt.h> |
---|
15 | 15 | #include <linux/leds.h> |
---|
16 | 16 | #include <linux/mmc/host.h> |
---|
17 | | -#include <linux/module.h> |
---|
18 | 17 | #include <linux/platform_device.h> |
---|
19 | 18 | #include <linux/pm.h> |
---|
20 | 19 | #include <linux/spi/spi.h> |
---|
.. | .. |
---|
165 | 164 | |
---|
166 | 165 | /******************************************************************************/ |
---|
167 | 166 | |
---|
| 167 | +#ifdef CONFIG_MMC_AU1X |
---|
168 | 168 | static irqreturn_t db1100_mmc_cd(int irq, void *ptr) |
---|
169 | 169 | { |
---|
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)); |
---|
176 | 171 | return IRQ_HANDLED; |
---|
177 | 172 | } |
---|
178 | 173 | |
---|
.. | .. |
---|
375 | 370 | .num_resources = ARRAY_SIZE(au1100_mmc1_res), |
---|
376 | 371 | .resource = au1100_mmc1_res, |
---|
377 | 372 | }; |
---|
| 373 | +#endif /* CONFIG_MMC_AU1X */ |
---|
378 | 374 | |
---|
379 | 375 | /******************************************************************************/ |
---|
380 | 376 | |
---|
.. | .. |
---|
438 | 434 | |
---|
439 | 435 | static struct platform_device *db1100_devs[] = { |
---|
440 | 436 | &au1100_lcd_device, |
---|
| 437 | +#ifdef CONFIG_MMC_AU1X |
---|
441 | 438 | &db1100_mmc0_dev, |
---|
442 | 439 | &db1100_mmc1_dev, |
---|
| 440 | +#endif |
---|
443 | 441 | }; |
---|
444 | 442 | |
---|
445 | 443 | int __init db1000_dev_setup(void) |
---|