aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-02-19 10:55:00 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-23 11:24:14 -0500
commitaa25afad2ca60d19457849ea75e9c31236f4e174 (patch)
tree24c8c815caf191af56f8de287637087c298711b2 /drivers/mmc/host/mmci.c
parent394d5aefcdecb51bbf7d6df757e73559c9692a08 (diff)
ARM: amba: make probe() functions take const id tables
Make Primecell driver probe functions take a const pointer to their ID tables. Drivers should never modify their ID tables in their probe handler. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
-rw-r--r--drivers/mmc/host/mmci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 2d6de3e03e2d..67f17d61b978 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -713,7 +713,8 @@ static const struct mmc_host_ops mmci_ops = {
713 .get_cd = mmci_get_cd, 713 .get_cd = mmci_get_cd,
714}; 714};
715 715
716static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id) 716static int __devinit mmci_probe(struct amba_device *dev,
717 const struct amba_id *id)
717{ 718{
718 struct mmci_platform_data *plat = dev->dev.platform_data; 719 struct mmci_platform_data *plat = dev->dev.platform_data;
719 struct variant_data *variant = id->data; 720 struct variant_data *variant = id->data;