diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2013-07-21 01:07:46 +0200 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-08-09 13:41:52 -0700 |
commit | 0e81ef588028feae7abb077a80acc27adf3e818d (patch) | |
tree | a471c6518395f6f1a8a9b6954a5fa24469e2b122 | |
parent | 1ba6411497589028ab9f90ed8438182e8506abbb (diff) | |
download | linux-0e81ef588028feae7abb077a80acc27adf3e818d.tar.gz linux-0e81ef588028feae7abb077a80acc27adf3e818d.tar.bz2 linux-0e81ef588028feae7abb077a80acc27adf3e818d.zip |
power_supply: tosa_battery: Get rid of irq_to_gpio usage
This commit fixes the following error:
linux/drivers/power/tosa_battery.c:153:2: error: implicit declaration of
function 'irq_to_gpio' [-Werror=implicit-function-declaration]
Since 9d08d5d77a355510c2f5657c86b0a4b25acfe72c, irq_to_gpio() is no longer
available but still in use by collie_battery.c. As it's just for a debug
message, just get rid of this call.
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
-rw-r--r-- | drivers/power/tosa_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/tosa_battery.c b/drivers/power/tosa_battery.c index 0224de50c540..f4d80df627c7 100644 --- a/drivers/power/tosa_battery.c +++ b/drivers/power/tosa_battery.c @@ -150,7 +150,7 @@ static void tosa_bat_external_power_changed(struct power_supply *psy) static irqreturn_t tosa_bat_gpio_isr(int irq, void *data) { - pr_info("tosa_bat_gpio irq: %d\n", gpio_get_value(irq_to_gpio(irq))); + pr_info("tosa_bat_gpio irq\n"); schedule_work(&bat_work); return IRQ_HANDLED; } |