diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2015-09-21 11:14:34 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-27 10:54:31 -0500 |
commit | 06e7114f0d8297278eb24f4e9bee3393a94bd8ce (patch) | |
tree | 9a4759e115df3f93c04bccc2fc4ef42fa172af02 /drivers/usb/dwc2 | |
parent | 666472733b8ce20716037c0d866395db54aa8c1d (diff) | |
download | lwn-06e7114f0d8297278eb24f4e9bee3393a94bd8ce.tar.gz lwn-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/dwc2')
-rw-r--r-- | drivers/usb/dwc2/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 3d1f82def2f3..28abd1f90900 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -220,7 +220,7 @@ static int dwc2_driver_probe(struct platform_device *dev) dev_dbg(&dev->dev, "mapped PA %08lx to VA %p\n", (unsigned long)res->start, hsotg->regs); - hsotg->dr_mode = of_usb_get_dr_mode(dev->dev.of_node); + hsotg->dr_mode = usb_get_dr_mode(&dev->dev); /* * Attempt to find a generic PHY, then look for an old style |