From: David Woodhouse Date: Mon, 9 Aug 2010 17:13:09 +0000 (+0100) Subject: olpc_battery: Fix build failure caused by sysfs changes X-Git-Tag: v2.6.36-rc1~61^2~2 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=690e85a3957291f4cfe0cac22d97994ec7e5ee45;p=net-next-2.6.git olpc_battery: Fix build failure caused by sysfs changes 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 --- diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c index baefcf1cffc..aafc1c506ed 100644 --- a/drivers/power/olpc_battery.c +++ b/drivers/power/olpc_battery.c @@ -1,7 +1,7 @@ /* * Battery driver for One Laptop Per Child board. * - * Copyright © 2006 David Woodhouse + * Copyright © 2006-2010 David Woodhouse * * 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,