]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
collie_battery: Get rid of irq_to_gpio usage
authorJochen Friedrich <jochen@scram.de>
Sat, 19 Nov 2011 18:26:37 +0000 (19:26 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 24 Nov 2011 22:20:57 +0000 (02:20 +0400)
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 <jochen@scram.de>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/collie_battery.c

index 548d263b1ad0b1444cf65198c112e7c237b9f1bc..7a40fce4c3cf323850c899a455708f7816d21a99 100644 (file)
@@ -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;
 }