diff options
Diffstat (limited to 'drivers/i2c/chips/eeprom.c')
-rw-r--r-- | drivers/i2c/chips/eeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/chips/eeprom.c b/drivers/i2c/chips/eeprom.c index 48f857ae8748..d3da1fb05b9b 100644 --- a/drivers/i2c/chips/eeprom.c +++ b/drivers/i2c/chips/eeprom.c | |||
@@ -112,7 +112,8 @@ exit: | |||
112 | mutex_unlock(&data->update_lock); | 112 | mutex_unlock(&data->update_lock); |
113 | } | 113 | } |
114 | 114 | ||
115 | static ssize_t eeprom_read(struct kobject *kobj, char *buf, loff_t off, size_t count) | 115 | static ssize_t eeprom_read(struct kobject *kobj, struct bin_attribute *bin_attr, |
116 | char *buf, loff_t off, size_t count) | ||
116 | { | 117 | { |
117 | struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj)); | 118 | struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj)); |
118 | struct eeprom_data *data = i2c_get_clientdata(client); | 119 | struct eeprom_data *data = i2c_get_clientdata(client); |
@@ -145,7 +146,6 @@ static struct bin_attribute eeprom_attr = { | |||
145 | .attr = { | 146 | .attr = { |
146 | .name = "eeprom", | 147 | .name = "eeprom", |
147 | .mode = S_IRUGO, | 148 | .mode = S_IRUGO, |
148 | .owner = THIS_MODULE, | ||
149 | }, | 149 | }, |
150 | .size = EEPROM_SIZE, | 150 | .size = EEPROM_SIZE, |
151 | .read = eeprom_read, | 151 | .read = eeprom_read, |