leds: Remove owner field from attribute initialization in bd2802 driver
authorGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 29 Jul 2010 05:09:23 +0000 (22:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Aug 2010 20:53:35 +0000 (13:53 -0700)
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/leds/leds-bd2802.c

index 5dcdf9d69b3abae8d0370ccbe1a0d913c716e7d1..19dc4b61a1055220b0308434c30f7028bdcfb2df 100644 (file)
@@ -351,7 +351,7 @@ static ssize_t bd2802_store_reg##reg_addr(struct device *dev,               \
        return count;                                                   \
 }                                                                      \
 static struct device_attribute bd2802_reg##reg_addr##_attr = {         \
-       .attr = {.name = reg_name, .mode = 0644, .owner = THIS_MODULE}, \
+       .attr = {.name = reg_name, .mode = 0644},                       \
        .store = bd2802_store_reg##reg_addr,                            \
 };
 
@@ -482,7 +482,6 @@ static struct device_attribute bd2802_adv_conf_attr = {
        .attr = {
                .name = "advanced_configuration",
                .mode = 0644,
-               .owner = THIS_MODULE
        },
        .show = bd2802_show_adv_conf,
        .store = bd2802_store_adv_conf,
@@ -519,7 +518,6 @@ static struct device_attribute bd2802_##attr_name##_attr = {                \
        .attr = {                                                       \
                .name = name_str,                                       \
                .mode = 0644,                                           \
-               .owner = THIS_MODULE                                    \
        },                                                              \
        .show = bd2802_show_##attr_name,                                \
        .store = bd2802_store_##attr_name,                              \