Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 690e85a3 authored by David Woodhouse's avatar David Woodhouse
Browse files

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: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 808be4b2
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
/*
/*
 * Battery driver for One Laptop Per Child board.
 * 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
 * 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
 * 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 = {
	.attr = {
		.name = "eeprom",
		.name = "eeprom",
		.mode = S_IRUGO,
		.mode = S_IRUGO,
		.owner = THIS_MODULE,
	},
	},
	.size = 0,
	.size = 0,
	.read = olpc_bat_eeprom_read,
	.read = olpc_bat_eeprom_read,