Commit b518a64983cbf2ff31aed530898de2d80e4573d5

Authored by Maurus Cuelenaere
Committed by Guenter Roeck
1 parent 9109f4eb84

hwmon: (s3c-hwmon) Fix compilation

The owner field was removed from struct attribute in
6fd69dc578fa0b1bbc3aad70ae3af9a137211707, so don't assign it anymore.

Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

drivers/hwmon/s3c-hwmon.c
... ... @@ -234,7 +234,6 @@
234 234 attr->index = channel;
235 235 attr->dev_attr.attr.name = attrs->in_name;
236 236 attr->dev_attr.attr.mode = S_IRUGO;
237   - attr->dev_attr.attr.owner = THIS_MODULE;
238 237 attr->dev_attr.show = s3c_hwmon_ch_show;
239 238  
240 239 ret = device_create_file(dev, &attr->dev_attr);
... ... @@ -252,7 +251,6 @@
252 251 attr->index = channel;
253 252 attr->dev_attr.attr.name = attrs->label_name;
254 253 attr->dev_attr.attr.mode = S_IRUGO;
255   - attr->dev_attr.attr.owner = THIS_MODULE;
256 254 attr->dev_attr.show = s3c_hwmon_label_show;
257 255  
258 256 ret = device_create_file(dev, &attr->dev_attr);