diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-19 10:55:00 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-23 11:24:14 -0500 |
commit | aa25afad2ca60d19457849ea75e9c31236f4e174 (patch) | |
tree | 24c8c815caf191af56f8de287637087c298711b2 /drivers/rtc | |
parent | 394d5aefcdecb51bbf7d6df757e73559c9692a08 (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/rtc')
-rw-r--r-- | drivers/rtc/rtc-pl030.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-pl031.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030.c index bbdb2f02798a..baff724cd40f 100644 --- a/drivers/rtc/rtc-pl030.c +++ b/drivers/rtc/rtc-pl030.c | |||
@@ -103,7 +103,7 @@ static const struct rtc_class_ops pl030_ops = { | |||
103 | .set_alarm = pl030_set_alarm, | 103 | .set_alarm = pl030_set_alarm, |
104 | }; | 104 | }; |
105 | 105 | ||
106 | static int pl030_probe(struct amba_device *dev, struct amba_id *id) | 106 | static int pl030_probe(struct amba_device *dev, const struct amba_id *id) |
107 | { | 107 | { |
108 | struct pl030_rtc *rtc; | 108 | struct pl030_rtc *rtc; |
109 | int ret; | 109 | int ret; |
diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index b7a6690e5b35..6568f4b37e19 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c | |||
@@ -358,7 +358,7 @@ static int pl031_remove(struct amba_device *adev) | |||
358 | return 0; | 358 | return 0; |
359 | } | 359 | } |
360 | 360 | ||
361 | static int pl031_probe(struct amba_device *adev, struct amba_id *id) | 361 | static int pl031_probe(struct amba_device *adev, const struct amba_id *id) |
362 | { | 362 | { |
363 | int ret; | 363 | int ret; |
364 | struct pl031_local *ldata; | 364 | struct pl031_local *ldata; |