Skip to contentSkip to conversation

usb: mtu3: fix ssusb_wakeup_set dummy

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 10, 2018 – Jan 11, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: mtu3: fix ssusb_wakeup_set dummy

Changing from ssusb_wakeup_enable/disable to ssusb_wakeup_set was done in only one of two places in the kernel, the other one now causes a build failure:

drivers/usb/mtu3/mtu3_plat.c: In function 'mtu3_suspend':
drivers/usb/mtu3/mtu3_plat.c:462:2: error: implicit declaration of function 'ssusb_wakeup_set'; did you mean 'ssusb_wakeup_disable'? [-Werror=implicit-function-declaration]

This adapts the dummy helpers the same way that the extern declarations were.

Fixes f0ede2c6282b ("usb: mtu3: supports remote wakeup for mt2712 with two SSUSB IPs")
---
 drivers/usb/mtu3/mtu3_dr.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/usb/mtu3/mtu3_dr.h +1 -6
index ae1598d76e02..50702fdcde28 100644
@@ -48,12 +48,7 @@ static inline int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend)
 	return 0;
 }
 
-static inline int ssusb_wakeup_enable(struct ssusb_mtk *ssusb)
-{
-	return 0;
-}
-
-static inline void ssusb_wakeup_disable(struct ssusb_mtk *ssusb)
+static inline void ssusb_wakeup_set(struct ssusb_mtk *ssusb, bool enable)
 {}
 
 #endif
Signature · 1 line
2.9.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines · Arnd Bergmann

Changing from ssusb_wakeup_enable/disable to ssusb_wakeup_set was done in only one of two places in the kernel, the other one now causes a build failure:

drivers/usb/mtu3/mtu3_plat.c: In function 'mtu3_suspend':
drivers/usb/mtu3/mtu3_plat.c:462:2: error: implicit declaration of function 'ssusb_wakeup_set'; did you mean 'ssusb_wakeup_disable'? [-Werror=implicit-function-declaration]

This adapts the dummy helpers the same way that the extern declarations were.

Fixes f0ede2c6282b ("usb: mtu3: supports remote wakeup for mt2712 with two SSUSB IPs")
---
 drivers/usb/mtu3/mtu3_dr.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/usb/mtu3/mtu3_dr.h +0 -0
index ae1598d76e02..50702fdcde28 100644
@@ -48,12 +48,7 @@ static inline int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend)
 	return 0;
 }
 

drivers/usb/mtu3/mtu3_dr.h static inline int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend) · line 54

Quoted 10 lines
drivers/usb/mtu3/mtu3_dr.h +1 -6
-static inline int ssusb_wakeup_enable(struct ssusb_mtk *ssusb)
-{
-	return 0;
-}
-
-static inline void ssusb_wakeup_disable(struct ssusb_mtk *ssusb)
+static inline void ssusb_wakeup_set(struct ssusb_mtk *ssusb, bool enable)
 {}
 
 #endif

Forgot to make it change,

Thanks a lot