diff options
Diffstat (limited to 'drivers/i2c/chips/max6875.c')
-rw-r--r-- | drivers/i2c/chips/max6875.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/chips/max6875.c b/drivers/i2c/chips/max6875.c index e9e9e5171b53..64692f666372 100644 --- a/drivers/i2c/chips/max6875.c +++ b/drivers/i2c/chips/max6875.c | |||
@@ -126,8 +126,9 @@ exit_up: | |||
126 | mutex_unlock(&data->update_lock); | 126 | mutex_unlock(&data->update_lock); |
127 | } | 127 | } |
128 | 128 | ||
129 | static ssize_t max6875_read(struct kobject *kobj, char *buf, loff_t off, | 129 | static ssize_t max6875_read(struct kobject *kobj, |
130 | size_t count) | 130 | struct bin_attribute *bin_attr, |
131 | char *buf, loff_t off, size_t count) | ||
131 | { | 132 | { |
132 | struct i2c_client *client = kobj_to_i2c_client(kobj); | 133 | struct i2c_client *client = kobj_to_i2c_client(kobj); |
133 | struct max6875_data *data = i2c_get_clientdata(client); | 134 | struct max6875_data *data = i2c_get_clientdata(client); |
@@ -153,7 +154,6 @@ static struct bin_attribute user_eeprom_attr = { | |||
153 | .attr = { | 154 | .attr = { |
154 | .name = "eeprom", | 155 | .name = "eeprom", |
155 | .mode = S_IRUGO, | 156 | .mode = S_IRUGO, |
156 | .owner = THIS_MODULE, | ||
157 | }, | 157 | }, |
158 | .size = USER_EEPROM_SIZE, | 158 | .size = USER_EEPROM_SIZE, |
159 | .read = max6875_read, | 159 | .read = max6875_read, |