usb: dwc3: adapt to use dr_mode device tree helper
authorRuchika Kharwar <ruchika@ti.com>
Sat, 6 Jul 2013 12:52:49 +0000 (07:52 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:56:51 +0000 (13:56 +0300)
commita45c82b84c844cd85b2ed1aa32596f1bffa32716
tree5da3e7a15957d138633a9085125defd336bac64d
parent51e563e3c11492748d11d3846b6d325426427a95
usb: dwc3: adapt to use dr_mode device tree helper

This patch adapts the dwc3 to use the device tree helper
"of_usb_get_dr_mode" for the mode of operation of the dwc3 instance
being probed.

[ balbi@ti.com : make of_usb_get_dr_mode() conditional on
dev->of_node and let pdata pass dr_mode too ]

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/platform_data.h