diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-09 13:13:09 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-09 13:13:09 -0400 |
| commit | 690e85a3957291f4cfe0cac22d97994ec7e5ee45 (patch) | |
| tree | d20847012ac44ebb10211740f33fe867ef962e21 | |
| parent | 808be4b22f47886d2279852ada3d186fc20909bc (diff) | |
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 <David.Woodhouse@intel.com>
| -rw-r--r-- | drivers/power/olpc_battery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c index baefcf1cffc9..aafc1c506eda 100644 --- a/drivers/power/olpc_battery.c +++ b/drivers/power/olpc_battery.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Battery driver for One Laptop Per Child board. | 2 | * Battery driver for One Laptop Per Child board. |
| 3 | * | 3 | * |
| 4 | * Copyright © 2006 David Woodhouse <dwmw2@infradead.org> | 4 | * Copyright © 2006-2010 David Woodhouse <dwmw2@infradead.org> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as |
| @@ -384,7 +384,6 @@ static struct bin_attribute olpc_bat_eeprom = { | |||
| 384 | .attr = { | 384 | .attr = { |
| 385 | .name = "eeprom", | 385 | .name = "eeprom", |
| 386 | .mode = S_IRUGO, | 386 | .mode = S_IRUGO, |
| 387 | .owner = THIS_MODULE, | ||
| 388 | }, | 387 | }, |
| 389 | .size = 0, | 388 | .size = 0, |
| 390 | .read = olpc_bat_eeprom_read, | 389 | .read = olpc_bat_eeprom_read, |
