aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/amba
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/amba')
-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 {