summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
authorRussell King2011-02-19 16:55:00 +0100
committerRussell King2011-02-23 17:24:14 +0100
commitaa25afad2ca60d19457849ea75e9c31236f4e174 (patch)
tree24c8c815caf191af56f8de287637087c298711b2 /drivers/mmc/host/mmci.c
parentARM: 6662/1: amba: make amba_bustype non-static (diff)
downloadkernel-qcow2-linux-aa25afad2ca60d19457849ea75e9c31236f4e174.tar.gz
kernel-qcow2-linux-aa25afad2ca60d19457849ea75e9c31236f4e174.tar.xz
kernel-qcow2-linux-aa25afad2ca60d19457849ea75e9c31236f4e174.zip
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 = {
.get_cd = mmci_get_cd,
};
-static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id)
+static int __devinit mmci_probe(struct amba_device *dev,
+ const struct amba_id *id)
{
struct mmci_platform_data *plat = dev->dev.platform_data;
struct variant_data *variant = id->data;