]> 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)
commit98ab073698578fa0364fd3b4a61aa458e168039c
treecfefa6118d7cdf38cd9c11769f242f784bc7b1c7
parent84eaa746cc0d3ab287f0c7982ab5de4a789c1ad2
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