aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ams/ams-i2c.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-03 10:52:17 +1000
committerPaul Mackerras <paulus@samba.org>2007-04-13 03:55:17 +1000
commita7edd0e676d51145ae634a2acf7a447e319200fa (patch)
tree24047c72a067e7c670fca186d89b1b7c032e1bde /drivers/hwmon/ams/ams-i2c.c
parent6c2d046980299d52d78b2738ad7f11fc593dea75 (diff)
downloadkernel_samsung_smdk4412-a7edd0e676d51145ae634a2acf7a447e319200fa.zip
kernel_samsung_smdk4412-a7edd0e676d51145ae634a2acf7a447e319200fa.tar.gz
kernel_samsung_smdk4412-a7edd0e676d51145ae634a2acf7a447e319200fa.tar.bz2
[POWERPC] get_property returns const
This just tidies up some of the remains. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/hwmon/ams/ams-i2c.c')
-rw-r--r--drivers/hwmon/ams/ams-i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/ams/ams-i2c.c b/drivers/hwmon/ams/ams-i2c.c
index 0d24bdf..485d333 100644
--- a/drivers/hwmon/ams/ams-i2c.c
+++ b/drivers/hwmon/ams/ams-i2c.c
@@ -263,7 +263,7 @@ int __init ams_i2c_init(struct device_node *np)
{
char *tmp_bus;
int result;
- u32 *prop;
+ const u32 *prop;
mutex_lock(&ams_info.lock);
@@ -276,7 +276,7 @@ int __init ams_i2c_init(struct device_node *np)
ams_info.bustype = BUS_I2C;
/* look for bus either using "reg" or by path */
- prop = (u32*)get_property(ams_info.of_node, "reg", NULL);
+ prop = get_property(ams_info.of_node, "reg", NULL);
if (!prop) {
result = -ENODEV;