]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
olpc_battery: Fix build failure caused by sysfs changes
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Aug 2010 17:13:09 +0000 (18:13 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Aug 2010 17:13:09 +0000 (18:13 +0100)
drivers/power/olpc_battery.c:387: error: unknown field 'owner' specified in initializer
drivers/power/olpc_battery.c:387: warning: excess elements in struct initializer
drivers/power/olpc_battery.c:387: warning: (near initialization for 'olpc_bat_eeprom.attr')

The .owner field has been dropped from the attr struct.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/power/olpc_battery.c

index baefcf1cffc9cdda1e8792aeddf3973621b0c1da..aafc1c506eda54fecd6ecad24b48b56ee00deded 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Battery driver for One Laptop Per Child board.
  *
- *     Copyright © 2006  David Woodhouse <dwmw2@infradead.org>
+ *     Copyright © 2006-2010  David Woodhouse <dwmw2@infradead.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -384,7 +384,6 @@ static struct bin_attribute olpc_bat_eeprom = {
        .attr = {
                .name = "eeprom",
                .mode = S_IRUGO,
-               .owner = THIS_MODULE,
        },
        .size = 0,
        .read = olpc_bat_eeprom_read,