diff options
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/host/mmc_spi.c | 1 | ||||
| -rw-r--r-- | drivers/mmc/host/sdhci-of-core.c | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c index 7b0f3ef50f96..1145ea0792e6 100644 --- a/drivers/mmc/host/mmc_spi.c +++ b/drivers/mmc/host/mmc_spi.c | |||
| @@ -1536,6 +1536,7 @@ static int __devexit mmc_spi_remove(struct spi_device *spi) | |||
| 1536 | #if defined(CONFIG_OF) | 1536 | #if defined(CONFIG_OF) |
| 1537 | static struct of_device_id mmc_spi_of_match_table[] __devinitdata = { | 1537 | static struct of_device_id mmc_spi_of_match_table[] __devinitdata = { |
| 1538 | { .compatible = "mmc-spi-slot", }, | 1538 | { .compatible = "mmc-spi-slot", }, |
| 1539 | {}, | ||
| 1539 | }; | 1540 | }; |
| 1540 | #endif | 1541 | #endif |
| 1541 | 1542 | ||
diff --git a/drivers/mmc/host/sdhci-of-core.c b/drivers/mmc/host/sdhci-of-core.c index dd1bdd168e66..c51b71174c1d 100644 --- a/drivers/mmc/host/sdhci-of-core.c +++ b/drivers/mmc/host/sdhci-of-core.c | |||
| @@ -85,14 +85,14 @@ void sdhci_be32bs_writeb(struct sdhci_host *host, u8 val, int reg) | |||
| 85 | 85 | ||
| 86 | #ifdef CONFIG_PM | 86 | #ifdef CONFIG_PM |
| 87 | 87 | ||
| 88 | static int sdhci_of_suspend(struct of_device *ofdev, pm_message_t state) | 88 | static int sdhci_of_suspend(struct platform_device *ofdev, pm_message_t state) |
| 89 | { | 89 | { |
| 90 | struct sdhci_host *host = dev_get_drvdata(&ofdev->dev); | 90 | struct sdhci_host *host = dev_get_drvdata(&ofdev->dev); |
| 91 | 91 | ||
| 92 | return mmc_suspend_host(host->mmc); | 92 | return mmc_suspend_host(host->mmc); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | static int sdhci_of_resume(struct of_device *ofdev) | 95 | static int sdhci_of_resume(struct platform_device *ofdev) |
| 96 | { | 96 | { |
| 97 | struct sdhci_host *host = dev_get_drvdata(&ofdev->dev); | 97 | struct sdhci_host *host = dev_get_drvdata(&ofdev->dev); |
| 98 | 98 | ||
| @@ -115,7 +115,7 @@ static bool __devinit sdhci_of_wp_inverted(struct device_node *np) | |||
| 115 | return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds); | 115 | return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | static int __devinit sdhci_of_probe(struct of_device *ofdev, | 118 | static int __devinit sdhci_of_probe(struct platform_device *ofdev, |
| 119 | const struct of_device_id *match) | 119 | const struct of_device_id *match) |
| 120 | { | 120 | { |
| 121 | struct device_node *np = ofdev->dev.of_node; | 121 | struct device_node *np = ofdev->dev.of_node; |
| @@ -183,7 +183,7 @@ err_addr_map: | |||
| 183 | return ret; | 183 | return ret; |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | static int __devexit sdhci_of_remove(struct of_device *ofdev) | 186 | static int __devexit sdhci_of_remove(struct platform_device *ofdev) |
| 187 | { | 187 | { |
| 188 | struct sdhci_host *host = dev_get_drvdata(&ofdev->dev); | 188 | struct sdhci_host *host = dev_get_drvdata(&ofdev->dev); |
| 189 | 189 | ||
