diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2015-09-21 10:14:34 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-27 17:54:31 +0200 |
commit | 06e7114f0d8297278eb24f4e9bee3393a94bd8ce (patch) | |
tree | 9a4759e115df3f93c04bccc2fc4ef42fa172af02 /drivers/usb/musb/sunxi.c | |
parent | usb: dwc3: st: prepare the driver for generic usb_get_dr_mode function (diff) | |
download | linux-06e7114f0d8297278eb24f4e9bee3393a94bd8ce.tar.xz linux-06e7114f0d8297278eb24f4e9bee3393a94bd8ce.zip |
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>
Diffstat (limited to 'drivers/usb/musb/sunxi.c')
-rw-r--r-- | drivers/usb/musb/sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c index f9f6304ad854..f11b8f681b30 100644 --- a/drivers/usb/musb/sunxi.c +++ b/drivers/usb/musb/sunxi.c @@ -617,7 +617,7 @@ static int sunxi_musb_probe(struct platform_device *pdev) return -ENOMEM; memset(&pdata, 0, sizeof(pdata)); - switch (of_usb_get_dr_mode(np)) { + switch (usb_get_dr_mode(&pdev->dev)) { #if defined CONFIG_USB_MUSB_DUAL_ROLE || defined CONFIG_USB_MUSB_HOST case USB_DR_MODE_HOST: pdata.mode = MUSB_PORT_MODE_HOST; |