]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ohci-at91: rework and fix initialization
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 21 Mar 2012 15:58:11 +0000 (16:58 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 4 Apr 2012 16:35:15 +0000 (18:35 +0200)
commita0f9a76886b4ad2ad7ffd9a2e8dad89a7765af43
treecfefa6118d7cdf38cd9c11769f242f784bc7b1c7
parent8bffc447db998b64d835a0a94d52173b361ced87
USB: ohci-at91: rework and fix initialization

The DT information are filled in a pdata structure and then passed on
to the usual check code of the probe function. Thus we do not need to
redo the gpio checking and irq configuration in the DT-related code.
On the other hand, we setup GPIO direction in driver for vbus and
overcurrent. It will be useful when moving to pinctrl subsystem.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
drivers/usb/host/ohci-at91.c