|
10 | 10 | #include <linux/gpio.h> |
11 | 11 | #include <linux/i2c.h> |
12 | 12 | #include <linux/init.h> |
13 | | -#include <linux/module.h> |
14 | 13 | #include <linux/interrupt.h> |
15 | 14 | #include <linux/io.h> |
16 | 15 | #include <linux/leds.h> |
@@ -340,14 +339,7 @@ static irqreturn_t db1200_mmc_cd(int irq, void *ptr) |
340 | 339 |
|
341 | 340 | static irqreturn_t db1200_mmc_cdfn(int irq, void *ptr) |
342 | 341 | { |
343 | | - void (*mmc_cd)(struct mmc_host *, unsigned long); |
344 | | - |
345 | | - /* link against CONFIG_MMC=m */ |
346 | | - mmc_cd = symbol_get(mmc_detect_change); |
347 | | - if (mmc_cd) { |
348 | | - mmc_cd(ptr, msecs_to_jiffies(200)); |
349 | | - symbol_put(mmc_detect_change); |
350 | | - } |
| 342 | + mmc_detect_change(ptr, msecs_to_jiffies(200)); |
351 | 343 |
|
352 | 344 | msleep(100); /* debounce */ |
353 | 345 | if (irq == DB1200_SD0_INSERT_INT) |
@@ -431,14 +423,7 @@ static irqreturn_t pb1200_mmc1_cd(int irq, void *ptr) |
431 | 423 |
|
432 | 424 | static irqreturn_t pb1200_mmc1_cdfn(int irq, void *ptr) |
433 | 425 | { |
434 | | - void (*mmc_cd)(struct mmc_host *, unsigned long); |
435 | | - |
436 | | - /* link against CONFIG_MMC=m */ |
437 | | - mmc_cd = symbol_get(mmc_detect_change); |
438 | | - if (mmc_cd) { |
439 | | - mmc_cd(ptr, msecs_to_jiffies(200)); |
440 | | - symbol_put(mmc_detect_change); |
441 | | - } |
| 426 | + mmc_detect_change(ptr, msecs_to_jiffies(200)); |
442 | 427 |
|
443 | 428 | msleep(100); /* debounce */ |
444 | 429 | if (irq == PB1200_SD1_INSERT_INT) |
|
0 commit comments