aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/renesas_usbhs/mod.c3
-rw-r--r--drivers/usb/renesas_usbhs/mod.h2
-rw-r--r--drivers/usb/renesas_usbhs/pipe.c3
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb/renesas_usbhs/mod.c
index ab1203098931..0340fb945f5b 100644
--- a/drivers/usb/renesas_usbhs/mod.c
+++ b/drivers/usb/renesas_usbhs/mod.c
@@ -93,8 +93,9 @@ struct usbhs_mod *usbhs_mod_get(struct usbhs_priv *priv, int id)
93 return ret; 93 return ret;
94} 94}
95 95
96int usbhs_mod_is_host(struct usbhs_priv *priv, struct usbhs_mod *mod) 96int usbhs_mod_is_host(struct usbhs_priv *priv)
97{ 97{
98 struct usbhs_mod *mod = usbhs_mod_get_current(priv);
98 struct usbhs_mod_info *info = usbhs_priv_to_modinfo(priv); 99 struct usbhs_mod_info *info = usbhs_priv_to_modinfo(priv);
99 100
100 if (!mod) 101 if (!mod)
diff --git a/drivers/usb/renesas_usbhs/mod.h b/drivers/usb/renesas_usbhs/mod.h
index 93edb1f29eb0..0e2c5b695820 100644
--- a/drivers/usb/renesas_usbhs/mod.h
+++ b/drivers/usb/renesas_usbhs/mod.h
@@ -88,7 +88,7 @@ struct usbhs_mod_info {
88struct usbhs_mod *usbhs_mod_get(struct usbhs_priv *priv, int id); 88struct usbhs_mod *usbhs_mod_get(struct usbhs_priv *priv, int id);
89struct usbhs_mod *usbhs_mod_get_current(struct usbhs_priv *priv); 89struct usbhs_mod *usbhs_mod_get_current(struct usbhs_priv *priv);
90void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *usb, int id); 90void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *usb, int id);
91int usbhs_mod_is_host(struct usbhs_priv *priv, struct usbhs_mod *mod); 91int usbhs_mod_is_host(struct usbhs_priv *priv);
92int usbhs_mod_change(struct usbhs_priv *priv, int id); 92int usbhs_mod_change(struct usbhs_priv *priv, int id);
93int usbhs_mod_probe(struct usbhs_priv *priv); 93int usbhs_mod_probe(struct usbhs_priv *priv);
94void usbhs_mod_remove(struct usbhs_priv *priv); 94void usbhs_mod_remove(struct usbhs_priv *priv);
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c
index 6aaa4364994e..ff97a8e4fcda 100644
--- a/drivers/usb/renesas_usbhs/pipe.c
+++ b/drivers/usb/renesas_usbhs/pipe.c
@@ -545,9 +545,8 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
545 int dir_in) 545 int dir_in)
546{ 546{
547 struct device *dev = usbhs_priv_to_dev(priv); 547 struct device *dev = usbhs_priv_to_dev(priv);
548 struct usbhs_mod *mod = usbhs_mod_get_current(priv);
549 struct usbhs_pipe *pipe; 548 struct usbhs_pipe *pipe;
550 int is_host = usbhs_mod_is_host(priv, mod); 549 int is_host = usbhs_mod_is_host(priv);
551 int ret; 550 int ret;
552 u16 pipecfg, pipebuf; 551 u16 pipecfg, pipebuf;
553 552