USB: gadget: pxa25x uses gpio_is_valid
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 1 Jul 2009 10:42:45 +0000 (03:42 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 12 Jul 2009 22:16:37 +0000 (15:16 -0700)
commit56a075dcd64b25c828af1752dff0ac1e6833e135
tree0a69daccc1bf31fd1b1838dfdbeca2884581d1a2
parent30899ca7f20571c4bd64544dec261171f6ec255b
USB: gadget: pxa25x uses gpio_is_valid

Use gpio_is_valid instead of assuming that every GPIO
number != 0 is valid while 0 is not.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pxa25x_udc.c