summaryrefslogtreecommitdiff
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2015-09-21 11:14:32 +0300
committerFelipe Balbi <balbi@ti.com>2015-09-27 18:54:31 +0300
commit63863b988eeca2823ce76b28b104e0b8366cafec (patch)
tree7b30daaebfda473f60805afeef2ed696305ddf51 /drivers/usb/musb
parent58efd4b06df4a421652cb2c8a850a9697a37915c (diff)
downloadlinux-63863b988eeca2823ce76b28b104e0b8366cafec.tar.xz
usb: common: of_usb_get_maximum_speed to usb_get_maximum_speed
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')
-rw-r--r--drivers/usb/musb/musb_dsps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index c8b2ec9a79d6..c6a69eaf280f 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -747,7 +747,7 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue,
if (!ret && val)
config->multipoint = true;
- config->maximum_speed = of_usb_get_maximum_speed(dn);
+ config->maximum_speed = usb_get_maximum_speed(&parent->dev);
switch (config->maximum_speed) {
case USB_SPEED_LOW:
case USB_SPEED_FULL: