hwmon: (s3c-hwmon) Fix compilation [Linux 2.6.37]

This Linux kernel change "hwmon: (s3c-hwmon) Fix compilation" is included in the Linux 2.6.37 release. This change is authored by Maurus Cuelenaere <mcuelenaere [at] gmail.com> on Sun Jan 2 14:48:16 2011 -0500. The commit for this change in Linux stable tree is b518a64 (patch).

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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/hwmon/s3c-hwmon.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/hwmon/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c
index 05248f2..92b42db 100644
--- a/drivers/hwmon/s3c-hwmon.c
+++ b/drivers/hwmon/s3c-hwmon.c
@@ -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);
@@ -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);

Leave a Reply

Your email address will not be published. Required fields are marked *