Title: [8147] trunk/drivers/input/touchscreen/ad7879.c: ad7879: touchup gpio remove code a bit
- Revision
- 8147
- Author
- vapier
- Date
- 2010-01-12 16:01:14 -0500 (Tue, 12 Jan 2010)
Log Message
ad7879: touchup gpio remove code a bit
Modified Paths
Diff
Modified: trunk/drivers/input/touchscreen/ad7879.c (8146 => 8147)
--- trunk/drivers/input/touchscreen/ad7879.c 2010-01-12 19:20:54 UTC (rev 8146)
+++ trunk/drivers/input/touchscreen/ad7879.c 2010-01-12 21:01:14 UTC (rev 8147)
@@ -520,17 +520,15 @@
static int __devexit ad7879_destroy(bus_device *bus, struct ad7879 *ts)
{
-
#ifdef CONFIG_GPIOLIB
struct ad7879_platform_data *pdata = bus->dev.platform_data;
- int err;
if (pdata->gpio_export) {
- err = gpiochip_remove(&ts->gc);
- if (err)
+ if (gpiochip_remove(&ts->gc))
dev_err(&bus->dev, "failed to remove gpio %d\n",
ts->gc.base);
}
#endif
+
ad7879_disable(ts);
sysfs_remove_group(&ts->bus->dev.kobj, &ad7879_attr_group);
free_irq(ts->bus->irq, ts);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits