diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-10 11:45:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-16 04:01:01 -0500 |
commit | b926c1daf3bb9bb6cf4843a0007294fe18add491 (patch) | |
tree | 59f946d3d0eaecc6ec5d80cc075926058934ac3f | |
parent | c182ce9bc8c85a623c71a23bcd6768045126c289 (diff) |
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")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/mtu3/mtu3_dr.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/mtu3/mtu3_dr.h b/drivers/usb/mtu3/mtu3_dr.h index ae1598d76e02..50702fdcde28 100644 --- a/drivers/usb/mtu3/mtu3_dr.h +++ b/drivers/usb/mtu3/mtu3_dr.h | |||
@@ -48,12 +48,7 @@ static inline int ssusb_host_disable(struct ssusb_mtk *ssusb, bool suspend) | |||
48 | return 0; | 48 | return 0; |
49 | } | 49 | } |
50 | 50 | ||
51 | static inline int ssusb_wakeup_enable(struct ssusb_mtk *ssusb) | 51 | static inline void ssusb_wakeup_set(struct ssusb_mtk *ssusb, bool enable) |
52 | { | ||
53 | return 0; | ||
54 | } | ||
55 | |||
56 | static inline void ssusb_wakeup_disable(struct ssusb_mtk *ssusb) | ||
57 | {} | 52 | {} |
58 | 53 | ||
59 | #endif | 54 | #endif |