Staging: iio: iio-trig-gpio: Remove redundant gpio_request
authorMichael Hennerich <Michael.Hennerich@analog.com>
Mon, 26 Apr 2010 08:36:36 +0000 (10:36 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:46 +0000 (11:35 -0700)
commita05d7ce36c55bc6496e1085584c9df901b899ab2
treedce516abf73d1bfe90e71fa91ed6361a82abbfba
parentceb0525c9e4f7e6a3ec762deb0960be3522030dc
Staging: iio: iio-trig-gpio: Remove redundant gpio_request

Remove redundant gpio_request:
The GPIO used as trigger IRQ, is also requested as gpio, but actually never read.

Use platform resource facility to get IRQs numbers and flags.
Make sure this driver can be used with any system IRQ, not necessarily limited to GPIO-IRQs.
Use dev_err(dev...) and friends instead of printk(KERN_ERR...)

Signed-off-by: Michael Hennerich <Michael.Hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/trigger/iio-trig-gpio.c