]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: Fix build warning seen with CONFIG_PM=n
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Dec 2019 01:19:11 +0000 (17:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 18:23:42 +0000 (19:23 +0100)
commitfc5024dd321be86c4eb1776c481080a20685bee4
tree7094fb57a3496edb718fb4eae6826c47afcf3142
parentf33c736fb8337ed5f33fe5bc55e8ceb5dbf30fd8
usb: xhci: Fix build warning seen with CONFIG_PM=n

The following build warning is seen if CONFIG_PM is disabled.

drivers/usb/host/xhci-pci.c:498:13: warning:
unused function 'xhci_pci_shutdown'

Fixes: b3340b6c38cc ("usb: xhci: only set D3hot for pci device")
Cc: Henry Lin <henryl@nvidia.com>
Cc: stable@vger.kernel.org # all stable releases with b3340b6c38cc
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20191218011911.6907-1-linux@roeck-us.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c