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/atxp1.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/hwmon/atxp1.c')
-rw-r--r-- | drivers/hwmon/atxp1.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c index d6b490d3e36f..33cc143b2069 100644 --- a/drivers/hwmon/atxp1.c +++ b/drivers/hwmon/atxp1.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/err.h> | 28 | #include <linux/err.h> |
29 | #include <linux/mutex.h> | 29 | #include <linux/mutex.h> |
30 | #include <linux/sysfs.h> | 30 | #include <linux/sysfs.h> |
31 | #include <linux/slab.h> | ||
31 | 32 | ||
32 | MODULE_LICENSE("GPL"); | 33 | MODULE_LICENSE("GPL"); |
33 | MODULE_DESCRIPTION("System voltages control via Attansic ATXP1"); | 34 | MODULE_DESCRIPTION("System voltages control via Attansic ATXP1"); |
@@ -44,17 +45,14 @@ MODULE_AUTHOR("Sebastian Witt <se.witt@gmx.net>"); | |||
44 | 45 | ||
45 | static const unsigned short normal_i2c[] = { 0x37, 0x4e, I2C_CLIENT_END }; | 46 | static const unsigned short normal_i2c[] = { 0x37, 0x4e, I2C_CLIENT_END }; |
46 | 47 | ||
47 | I2C_CLIENT_INSMOD_1(atxp1); | ||
48 | |||
49 | static int atxp1_probe(struct i2c_client *client, | 48 | static int atxp1_probe(struct i2c_client *client, |
50 | const struct i2c_device_id *id); | 49 | const struct i2c_device_id *id); |
51 | static int atxp1_remove(struct i2c_client *client); | 50 | static int atxp1_remove(struct i2c_client *client); |
52 | static struct atxp1_data * atxp1_update_device(struct device *dev); | 51 | static struct atxp1_data * atxp1_update_device(struct device *dev); |
53 | static int atxp1_detect(struct i2c_client *client, int kind, | 52 | static int atxp1_detect(struct i2c_client *client, struct i2c_board_info *info); |
54 | struct i2c_board_info *info); | ||
55 | 53 | ||
56 | static const struct i2c_device_id atxp1_id[] = { | 54 | static const struct i2c_device_id atxp1_id[] = { |
57 | { "atxp1", atxp1 }, | 55 | { "atxp1", 0 }, |
58 | { } | 56 | { } |
59 | }; | 57 | }; |
60 | MODULE_DEVICE_TABLE(i2c, atxp1_id); | 58 | MODULE_DEVICE_TABLE(i2c, atxp1_id); |
@@ -68,7 +66,7 @@ static struct i2c_driver atxp1_driver = { | |||
68 | .remove = atxp1_remove, | 66 | .remove = atxp1_remove, |
69 | .id_table = atxp1_id, | 67 | .id_table = atxp1_id, |
70 | .detect = atxp1_detect, | 68 | .detect = atxp1_detect, |
71 | .address_data = &addr_data, | 69 | .address_list = normal_i2c, |
72 | }; | 70 | }; |
73 | 71 | ||
74 | struct atxp1_data { | 72 | struct atxp1_data { |
@@ -275,7 +273,7 @@ static const struct attribute_group atxp1_group = { | |||
275 | 273 | ||
276 | 274 | ||
277 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 275 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
278 | static int atxp1_detect(struct i2c_client *new_client, int kind, | 276 | static int atxp1_detect(struct i2c_client *new_client, |
279 | struct i2c_board_info *info) | 277 | struct i2c_board_info *info) |
280 | { | 278 | { |
281 | struct i2c_adapter *adapter = new_client->adapter; | 279 | struct i2c_adapter *adapter = new_client->adapter; |