diff options
Diffstat (limited to 'drivers/rapidio/rio-sysfs.c')
-rw-r--r-- | drivers/rapidio/rio-sysfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index eed91434417d..659e31164cf0 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c | |||
@@ -67,7 +67,8 @@ struct device_attribute rio_dev_attrs[] = { | |||
67 | }; | 67 | }; |
68 | 68 | ||
69 | static ssize_t | 69 | static ssize_t |
70 | rio_read_config(struct kobject *kobj, char *buf, loff_t off, size_t count) | 70 | rio_read_config(struct kobject *kobj, struct bin_attribute *bin_attr, |
71 | char *buf, loff_t off, size_t count) | ||
71 | { | 72 | { |
72 | struct rio_dev *dev = | 73 | struct rio_dev *dev = |
73 | to_rio_dev(container_of(kobj, struct device, kobj)); | 74 | to_rio_dev(container_of(kobj, struct device, kobj)); |
@@ -137,7 +138,8 @@ rio_read_config(struct kobject *kobj, char *buf, loff_t off, size_t count) | |||
137 | } | 138 | } |
138 | 139 | ||
139 | static ssize_t | 140 | static ssize_t |
140 | rio_write_config(struct kobject *kobj, char *buf, loff_t off, size_t count) | 141 | rio_write_config(struct kobject *kobj, struct bin_attribute *bin_attr, |
142 | char *buf, loff_t off, size_t count) | ||
141 | { | 143 | { |
142 | struct rio_dev *dev = | 144 | struct rio_dev *dev = |
143 | to_rio_dev(container_of(kobj, struct device, kobj)); | 145 | to_rio_dev(container_of(kobj, struct device, kobj)); |
@@ -197,7 +199,6 @@ static struct bin_attribute rio_config_attr = { | |||
197 | .attr = { | 199 | .attr = { |
198 | .name = "config", | 200 | .name = "config", |
199 | .mode = S_IRUGO | S_IWUSR, | 201 | .mode = S_IRUGO | S_IWUSR, |
200 | .owner = THIS_MODULE, | ||
201 | }, | 202 | }, |
202 | .size = 0x200000, | 203 | .size = 0x200000, |
203 | .read = rio_read_config, | 204 | .read = rio_read_config, |