Skip to content

Commit

Permalink
hwmon: (s3c-hwmon) Fix compilation
Browse files Browse the repository at this point in the history
The owner field was removed from struct attribute in
6fd69dc, so don't assign it anymore.

Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
  • Loading branch information
Maurus Cuelenaere authored and Guenter Roeck committed Jan 2, 2011
1 parent 9109f4e commit b518a64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/hwmon/s3c-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ static int s3c_hwmon_create_attr(struct device *dev,
attr->index = channel;
attr->dev_attr.attr.name = attrs->in_name;
attr->dev_attr.attr.mode = S_IRUGO;
attr->dev_attr.attr.owner = THIS_MODULE;
attr->dev_attr.show = s3c_hwmon_ch_show;

ret = device_create_file(dev, &attr->dev_attr);
Expand All @@ -252,7 +251,6 @@ static int s3c_hwmon_create_attr(struct device *dev,
attr->index = channel;
attr->dev_attr.attr.name = attrs->label_name;
attr->dev_attr.attr.mode = S_IRUGO;
attr->dev_attr.attr.owner = THIS_MODULE;
attr->dev_attr.show = s3c_hwmon_label_show;

ret = device_create_file(dev, &attr->dev_attr);
Expand Down

0 comments on commit b518a64

Please sign in to comment.