diff options
author | Roman Kiryanov <rkir@google.com> | 2018-12-18 16:31:36 -0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2019-01-20 22:29:22 +0100 |
commit | 5fbde356cb09a418bb0838c863ab610439d3dac0 (patch) | |
tree | a4ec99c54e79ea694e830aab75b302bbc3fd919e /drivers | |
parent | 65ab18a1aaa884d4c9a94f66119b125aeff48351 (diff) |
drivers: power: supply: goldfish_battery: Retire a redundant variable
The battery_data static variable was not used.
Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/supply/goldfish_battery.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/power/supply/goldfish_battery.c b/drivers/power/supply/goldfish_battery.c index 6f6b19dbcc29..f65ceb50d588 100644 --- a/drivers/power/supply/goldfish_battery.c +++ b/drivers/power/supply/goldfish_battery.c @@ -32,12 +32,6 @@ struct goldfish_battery_data { #define GOLDFISH_BATTERY_WRITE(data, addr, x) \ (writel(x, data->reg_base + addr)) -/* - * Temporary variable used between goldfish_battery_probe() and - * goldfish_battery_open(). - */ -static struct goldfish_battery_data *battery_data; - enum { /* status register */ BATTERY_INT_STATUS = 0x00, @@ -205,7 +199,6 @@ static int goldfish_battery_probe(struct platform_device *pdev) } platform_set_drvdata(pdev, data); - battery_data = data; GOLDFISH_BATTERY_WRITE(data, BATTERY_INT_ENABLE, BATTERY_INT_MASK); return 0; @@ -217,7 +210,6 @@ static int goldfish_battery_remove(struct platform_device *pdev) power_supply_unregister(data->battery); power_supply_unregister(data->ac); - battery_data = NULL; return 0; } |