diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-11-26 15:00:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:22 -0500 |
commit | cde7859bda0d1124392b44e50aa11df99707e1d9 (patch) | |
tree | c852e7ff9b44b5e59f6ae75951514585f0ff10d9 /drivers/i2c/chips | |
parent | cb748fb20186d4b345c68a7f580429f379fdd268 (diff) |
[PATCH] i2c: Rework client usage count, 2 of 3
Make I2C_CLIENT_ALLOW_USE the default for all i2c clients. It doesn't
hurt if the usage count is actually never used for any given driver,
and allows for nice code simplifications in i2c-core.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/chips')
-rw-r--r-- | drivers/i2c/chips/rtc8564.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/chips/rtc8564.c b/drivers/i2c/chips/rtc8564.c index e586f75dd024..07494d394381 100644 --- a/drivers/i2c/chips/rtc8564.c +++ b/drivers/i2c/chips/rtc8564.c | |||
@@ -155,7 +155,6 @@ static int rtc8564_attach(struct i2c_adapter *adap, int addr, int kind) | |||
155 | 155 | ||
156 | strlcpy(new_client->name, "RTC8564", I2C_NAME_SIZE); | 156 | strlcpy(new_client->name, "RTC8564", I2C_NAME_SIZE); |
157 | i2c_set_clientdata(new_client, d); | 157 | i2c_set_clientdata(new_client, d); |
158 | new_client->flags = I2C_CLIENT_ALLOW_USE; | ||
159 | new_client->addr = addr; | 158 | new_client->addr = addr; |
160 | new_client->adapter = adap; | 159 | new_client->adapter = adap; |
161 | new_client->driver = &rtc8564_driver; | 160 | new_client->driver = &rtc8564_driver; |