diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-12-14 15:37:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 11:22:47 +0100 |
commit | e675483ee2f147500f490475071e29adea7956a7 (patch) | |
tree | 30d56d103edeec5b092d5fe428479d98cf8239e5 /fs/super.c | |
parent | 02ef64ac647f67fbb1518bcaf2c73819b258e9b4 (diff) |
usb: hub: Move hub_port_disable() to fix warning if PM is disabled
commit 3bc02bce908c7250781376052248f5cd60a4e3d4 upstream.
If CONFIG_PM=n:
drivers/usb/core/hub.c:107: warning: ‘hub_usb3_port_prepare_disable’ declared inline after being called
drivers/usb/core/hub.c:107: warning: previous declaration of ‘hub_usb3_port_prepare_disable’ was here
To fix this, move hub_port_disable() after
hub_usb3_port_prepare_disable(), and adjust forward declarations.
Fixes: 37be66767e3cae4f ("usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions