usb: common: of_usb_get_dr_mode to usb_get_dr_mode
By using the unified device property interface, the function can be made available for all platforms and not just the ones using DT. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:

committed by
Felipe Balbi

szülő
666472733b
commit
06e7114f0d
@@ -611,7 +611,7 @@ static int ci_get_platdata(struct device *dev,
|
||||
platdata->phy_mode = of_usb_get_phy_mode(dev->of_node);
|
||||
|
||||
if (!platdata->dr_mode)
|
||||
platdata->dr_mode = of_usb_get_dr_mode(dev->of_node);
|
||||
platdata->dr_mode = usb_get_dr_mode(dev);
|
||||
|
||||
if (platdata->dr_mode == USB_DR_MODE_UNKNOWN)
|
||||
platdata->dr_mode = USB_DR_MODE_OTG;
|
||||
|
Reference in New Issue
Block a user