diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/hwmon/pcf8591.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/hwmon/pcf8591.c')
-rw-r--r-- | drivers/hwmon/pcf8591.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/pcf8591.c b/drivers/hwmon/pcf8591.c index 1d7ffebd679d..d44787949851 100644 --- a/drivers/hwmon/pcf8591.c +++ b/drivers/hwmon/pcf8591.c | |||
@@ -29,7 +29,6 @@ static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, 0x4c, | |||
29 | 0x4d, 0x4e, 0x4f, I2C_CLIENT_END }; | 29 | 0x4d, 0x4e, 0x4f, I2C_CLIENT_END }; |
30 | 30 | ||
31 | /* Insmod parameters */ | 31 | /* Insmod parameters */ |
32 | I2C_CLIENT_INSMOD_1(pcf8591); | ||
33 | 32 | ||
34 | static int input_mode; | 33 | static int input_mode; |
35 | module_param(input_mode, int, 0); | 34 | module_param(input_mode, int, 0); |
@@ -169,7 +168,7 @@ static const struct attribute_group pcf8591_attr_group_opt = { | |||
169 | */ | 168 | */ |
170 | 169 | ||
171 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 170 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
172 | static int pcf8591_detect(struct i2c_client *client, int kind, | 171 | static int pcf8591_detect(struct i2c_client *client, |
173 | struct i2c_board_info *info) | 172 | struct i2c_board_info *info) |
174 | { | 173 | { |
175 | struct i2c_adapter *adapter = client->adapter; | 174 | struct i2c_adapter *adapter = client->adapter; |
@@ -299,7 +298,7 @@ static struct i2c_driver pcf8591_driver = { | |||
299 | 298 | ||
300 | .class = I2C_CLASS_HWMON, /* Nearest choice */ | 299 | .class = I2C_CLASS_HWMON, /* Nearest choice */ |
301 | .detect = pcf8591_detect, | 300 | .detect = pcf8591_detect, |
302 | .address_data = &addr_data, | 301 | .address_list = normal_i2c, |
303 | }; | 302 | }; |
304 | 303 | ||
305 | static int __init pcf8591_init(void) | 304 | static int __init pcf8591_init(void) |