diff options
| -rw-r--r-- | drivers/mmc/at91_mci.c | 11 | ||||
| -rw-r--r-- | drivers/mmc/omap.c | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/drivers/mmc/at91_mci.c b/drivers/mmc/at91_mci.c index 08a33c33f6ed..aa152f31851e 100644 --- a/drivers/mmc/at91_mci.c +++ b/drivers/mmc/at91_mci.c | |||
| @@ -768,7 +768,7 @@ static irqreturn_t at91_mmc_det_irq(int irq, void *_host) | |||
| 768 | return IRQ_HANDLED; | 768 | return IRQ_HANDLED; |
| 769 | } | 769 | } |
| 770 | 770 | ||
| 771 | int at91_mci_get_ro(struct mmc_host *mmc) | 771 | static int at91_mci_get_ro(struct mmc_host *mmc) |
| 772 | { | 772 | { |
| 773 | int read_only = 0; | 773 | int read_only = 0; |
| 774 | struct at91mci_host *host = mmc_priv(mmc); | 774 | struct at91mci_host *host = mmc_priv(mmc); |
| @@ -794,7 +794,7 @@ static const struct mmc_host_ops at91_mci_ops = { | |||
| 794 | /* | 794 | /* |
| 795 | * Probe for the device | 795 | * Probe for the device |
| 796 | */ | 796 | */ |
| 797 | static int at91_mci_probe(struct platform_device *pdev) | 797 | static int __init at91_mci_probe(struct platform_device *pdev) |
| 798 | { | 798 | { |
| 799 | struct mmc_host *mmc; | 799 | struct mmc_host *mmc; |
| 800 | struct at91mci_host *host; | 800 | struct at91mci_host *host; |
| @@ -910,7 +910,7 @@ static int at91_mci_probe(struct platform_device *pdev) | |||
| 910 | /* | 910 | /* |
| 911 | * Remove a device | 911 | * Remove a device |
| 912 | */ | 912 | */ |
| 913 | static int at91_mci_remove(struct platform_device *pdev) | 913 | static int __exit at91_mci_remove(struct platform_device *pdev) |
| 914 | { | 914 | { |
| 915 | struct mmc_host *mmc = platform_get_drvdata(pdev); | 915 | struct mmc_host *mmc = platform_get_drvdata(pdev); |
| 916 | struct at91mci_host *host; | 916 | struct at91mci_host *host; |
| @@ -972,8 +972,7 @@ static int at91_mci_resume(struct platform_device *pdev) | |||
| 972 | #endif | 972 | #endif |
| 973 | 973 | ||
| 974 | static struct platform_driver at91_mci_driver = { | 974 | static struct platform_driver at91_mci_driver = { |
| 975 | .probe = at91_mci_probe, | 975 | .remove = __exit_p(at91_mci_remove), |
| 976 | .remove = at91_mci_remove, | ||
| 977 | .suspend = at91_mci_suspend, | 976 | .suspend = at91_mci_suspend, |
| 978 | .resume = at91_mci_resume, | 977 | .resume = at91_mci_resume, |
| 979 | .driver = { | 978 | .driver = { |
| @@ -984,7 +983,7 @@ static struct platform_driver at91_mci_driver = { | |||
| 984 | 983 | ||
| 985 | static int __init at91_mci_init(void) | 984 | static int __init at91_mci_init(void) |
| 986 | { | 985 | { |
| 987 | return platform_driver_register(&at91_mci_driver); | 986 | return platform_driver_probe(&at91_mci_driver, at91_mci_probe); |
| 988 | } | 987 | } |
| 989 | 988 | ||
| 990 | static void __exit at91_mci_exit(void) | 989 | static void __exit at91_mci_exit(void) |
diff --git a/drivers/mmc/omap.c b/drivers/mmc/omap.c index 435d331e772a..9488408308fb 100644 --- a/drivers/mmc/omap.c +++ b/drivers/mmc/omap.c | |||
| @@ -581,9 +581,9 @@ static void mmc_omap_switch_timer(unsigned long arg) | |||
| 581 | schedule_work(&host->switch_work); | 581 | schedule_work(&host->switch_work); |
| 582 | } | 582 | } |
| 583 | 583 | ||
| 584 | static void mmc_omap_switch_handler(void *data) | 584 | static void mmc_omap_switch_handler(struct work_struct *work) |
| 585 | { | 585 | { |
| 586 | struct mmc_omap_host *host = (struct mmc_omap_host *) data; | 586 | struct mmc_omap_host *host = container_of(work, struct mmc_omap_host, switch_work); |
| 587 | struct mmc_card *card; | 587 | struct mmc_card *card; |
| 588 | static int complained = 0; | 588 | static int complained = 0; |
| 589 | int cards = 0, cover_open; | 589 | int cards = 0, cover_open; |
| @@ -1116,7 +1116,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev) | |||
| 1116 | platform_set_drvdata(pdev, host); | 1116 | platform_set_drvdata(pdev, host); |
| 1117 | 1117 | ||
| 1118 | if (host->switch_pin >= 0) { | 1118 | if (host->switch_pin >= 0) { |
| 1119 | INIT_WORK(&host->switch_work, mmc_omap_switch_handler, host); | 1119 | INIT_WORK(&host->switch_work, mmc_omap_switch_handler); |
| 1120 | init_timer(&host->switch_timer); | 1120 | init_timer(&host->switch_timer); |
| 1121 | host->switch_timer.function = mmc_omap_switch_timer; | 1121 | host->switch_timer.function = mmc_omap_switch_timer; |
| 1122 | host->switch_timer.data = (unsigned long) host; | 1122 | host->switch_timer.data = (unsigned long) host; |
