Commit c8bbab8f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel

power: supply: s3c_adc_battery: remove unused pdata in suspend/resume

The "pdata" local variable is not used in suspend/resume handlers since
commit 7776bcd2 ("power: supply: s3c-adc-battery: Convert to GPIO
descriptors"):

    drivers/power/supply/s3c_adc_battery.c: In function ‘s3c_adc_bat_suspend’:
    drivers/power/supply/s3c_adc_battery.c:405:28: warning: unused variable ‘pdata’ [-Wunused-variable]

    drivers/power/supply/s3c_adc_battery.c: In function ‘s3c_adc_bat_resume’:
    drivers/power/supply/s3c_adc_battery.c:422:28: warning: unused variable ‘pdata’ [-Wunused-variable]
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent d6ce6e81
...@@ -402,8 +402,6 @@ static int s3c_adc_bat_remove(struct platform_device *pdev) ...@@ -402,8 +402,6 @@ static int s3c_adc_bat_remove(struct platform_device *pdev)
static int s3c_adc_bat_suspend(struct platform_device *pdev, static int s3c_adc_bat_suspend(struct platform_device *pdev,
pm_message_t state) pm_message_t state)
{ {
struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data;
if (main_bat.charge_finished) { if (main_bat.charge_finished) {
if (device_may_wakeup(&pdev->dev)) if (device_may_wakeup(&pdev->dev))
enable_irq_wake( enable_irq_wake(
...@@ -419,8 +417,6 @@ static int s3c_adc_bat_suspend(struct platform_device *pdev, ...@@ -419,8 +417,6 @@ static int s3c_adc_bat_suspend(struct platform_device *pdev,
static int s3c_adc_bat_resume(struct platform_device *pdev) static int s3c_adc_bat_resume(struct platform_device *pdev)
{ {
struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data;
if (main_bat.charge_finished) { if (main_bat.charge_finished) {
if (device_may_wakeup(&pdev->dev)) if (device_may_wakeup(&pdev->dev))
disable_irq_wake( disable_irq_wake(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment