diff --git a/drivers/power/supply/olpc_battery.c b/drivers/power/supply/olpc_battery.c index fc20ca368e55f0a8051c86b58b691f3d8c9f7bf4..3bc2eea7b3b700ca75d8cbf2dd0ca807c6012d62 100644 --- a/drivers/power/supply/olpc_battery.c +++ b/drivers/power/supply/olpc_battery.c @@ -559,7 +559,7 @@ static ssize_t olpc_bat_error_read(struct device *dev, return sprintf(buf, "%d\n", ec_byte); } -static struct device_attribute olpc_bat_error = { +static const struct device_attribute olpc_bat_error = { .attr = { .name = "error", .mode = S_IRUGO,