usb: gadget: pxa25x_udc: fix deferred probe from __init
authorJohan Hovold <jhovold@gmail.com>
Mon, 23 Sep 2013 14:27:30 +0000 (16:27 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 23 Sep 2013 19:29:49 +0000 (14:29 -0500)
commit8233729853b424778a6f383306159a8df669bdaf
tree492e0accd9d65c97a3f9a1ca8f36e6d79d0d4c62
parent1374a430f81a67c5c594c3f3c84c58845ed7caec
usb: gadget: pxa25x_udc: fix deferred probe from __init

Move probe out of __init section and don't use platform_driver_probe
which cannot be used with deferred probing.

Since commit e9354576 ("gpiolib: Defer failed gpio requests by default")
this driver might return -EPROBE_DEFER if a gpio_request fails.

Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/pxa25x_udc.c