]> git.baikalelectronics.ru Git - kernel.git/commit
usb: hub: Move hub_port_disable() to fix warning if PM is disabled
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 14 Dec 2016 14:37:30 +0000 (15:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Jan 2017 18:24:55 +0000 (19:24 +0100)
commita4f91e9671ad31fc568b458684dcd4ec611e24c8
treefbd8a6888f283933b02c50e76c46454c25798929
parent3e4b5aaeee70ac277df78659d2234bcd86be1ec7
usb: hub: Move hub_port_disable() to fix warning if PM is disabled

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: 9e6cce6f81f8b891 ("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>
drivers/usb/core/hub.c