From: Jochen Friedrich Date: Sat, 19 Nov 2011 18:26:37 +0000 (+0100) Subject: collie_battery: Get rid of irq_to_gpio usage X-Git-Tag: firefly_0821_release~3680^2~3750^2^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=629bcb4b72d49b3631ae3dd0fe1d345820fadfcc;p=firefly-linux-kernel-4.4.55.git collie_battery: Get rid of irq_to_gpio usage 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: Jochen Friedrich Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/collie_battery.c b/drivers/power/collie_battery.c index 548d263b1ad0..7a40fce4c3cf 100644 --- a/drivers/power/collie_battery.c +++ b/drivers/power/collie_battery.c @@ -146,7 +146,7 @@ static void collie_bat_external_power_changed(struct power_supply *psy) static irqreturn_t collie_bat_gpio_isr(int irq, void *data) { - pr_info("collie_bat_gpio irq: %d\n", gpio_get_value(irq_to_gpio(irq))); + pr_info("collie_bat_gpio irq\n"); schedule_work(&bat_work); return IRQ_HANDLED; }