diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-12-14 15:17:26 -0500 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-12-14 15:17:26 -0500 |
commit | 1f86df49ddfd0067cce941187d57b2fd2f749a9e (patch) | |
tree | a8357108c8be9e39d040e71d473df4a8f46550da /drivers/hwmon/ds1621.c | |
parent | c3813d6af177fab19e322f3114b1f64fbcf08d71 (diff) |
i2c: Drop I2C_CLIENT_INSMOD_1
This macro simply declares an enum, so drivers might as well declare
it themselves.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/hwmon/ds1621.c')
-rw-r--r-- | drivers/hwmon/ds1621.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c index dfa4329090d4..e11363467a8d 100644 --- a/drivers/hwmon/ds1621.c +++ b/drivers/hwmon/ds1621.c | |||
@@ -38,7 +38,6 @@ static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, 0x4c, | |||
38 | 0x4d, 0x4e, 0x4f, I2C_CLIENT_END }; | 38 | 0x4d, 0x4e, 0x4f, I2C_CLIENT_END }; |
39 | 39 | ||
40 | /* Insmod parameters */ | 40 | /* Insmod parameters */ |
41 | I2C_CLIENT_INSMOD_1(ds1621); | ||
42 | static int polarity = -1; | 41 | static int polarity = -1; |
43 | module_param(polarity, int, 0); | 42 | module_param(polarity, int, 0); |
44 | MODULE_PARM_DESC(polarity, "Output's polarity: 0 = active high, 1 = active low"); | 43 | MODULE_PARM_DESC(polarity, "Output's polarity: 0 = active high, 1 = active low"); |
@@ -305,8 +304,8 @@ static int ds1621_remove(struct i2c_client *client) | |||
305 | } | 304 | } |
306 | 305 | ||
307 | static const struct i2c_device_id ds1621_id[] = { | 306 | static const struct i2c_device_id ds1621_id[] = { |
308 | { "ds1621", ds1621 }, | 307 | { "ds1621", 0 }, |
309 | { "ds1625", ds1621 }, | 308 | { "ds1625", 0 }, |
310 | { } | 309 | { } |
311 | }; | 310 | }; |
312 | MODULE_DEVICE_TABLE(i2c, ds1621_id); | 311 | MODULE_DEVICE_TABLE(i2c, ds1621_id); |