]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Sat, 4 Jan 2020 12:40:11 +0000 (13:40 +0100)
commit795b4ef803e29c5922927dbc78732b98a0e28a73
treef26704c598dd02cc1a552cb21b5a98af293e1ec7
parent69f225a5baa473ad8ef030cbc3fa2ed596fa5bb7
usb: xhci: Fix build warning seen with CONFIG_PM=n

[ Upstream commit 6056a0f8ede27b296d10ef46f7f677cc9d715371 ]

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: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device")
Cc: Henry Lin <henryl@nvidia.com>
Cc: stable@vger.kernel.org # all stable releases with f2c710f7dca8
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/xhci-pci.c