aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-02-19 10:55:26 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-23 11:24:19 -0500
commitc862aab0bc14060bfa8351ff1e93cbce9669abcf (patch)
treecd822d31785ce9464a34bf08284973795453d922
parentaa25afad2ca60d19457849ea75e9c31236f4e174 (diff)
ARM: amba: make internal ID table handling const
As all probe() functions now take a const pointer, we can make the bus level code deal with const pointers too. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/amba/bus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index ca96b0a26303..43088996a07a 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -21,8 +21,8 @@
21#define to_amba_device(d) container_of(d, struct amba_device, dev) 21#define to_amba_device(d) container_of(d, struct amba_device, dev)
22#define to_amba_driver(d) container_of(d, struct amba_driver, drv) 22#define to_amba_driver(d) container_of(d, struct amba_driver, drv)
23 23
24static struct amba_id * 24static const struct amba_id *
25amba_lookup(struct amba_id *table, struct amba_device *dev) 25amba_lookup(const struct amba_id *table, struct amba_device *dev)
26{ 26{
27 int ret = 0; 27 int ret = 0;
28 28
@@ -188,7 +188,7 @@ static int amba_probe(struct device *dev)
188{ 188{
189 struct amba_device *pcdev = to_amba_device(dev); 189 struct amba_device *pcdev = to_amba_device(dev);
190 struct amba_driver *pcdrv = to_amba_driver(dev->driver); 190 struct amba_driver *pcdrv = to_amba_driver(dev->driver);
191 struct amba_id *id = amba_lookup(pcdrv->id_table, pcdev); 191 const struct amba_id *id = amba_lookup(pcdrv->id_table, pcdev);
192 int ret; 192 int ret;
193 193
194 do { 194 do {