From: Azriel Samson Date: Fri, 11 Dec 2015 00:28:57 +0000 (-0600) Subject: usb: host: ehci-msm: Register usb shutdown function X-Git-Tag: next-20160210~20^2~80 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4bb3cad7125b;p=karo-tx-linux.git usb: host: ehci-msm: Register usb shutdown function Registering usb_hcd_platform_shutdown to be called during shutdown. This is a generic function that performs the generic host stack's shutdown. It ensures that USB operations do not continue while kexec boots a new kernel. Signed-off-by: Azriel Samson Signed-off-by: Timur Tabi Reviewed-by: Andy Gross Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index b71947d04fed..3e226ef6ca62 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -220,6 +220,7 @@ MODULE_DEVICE_TABLE(of, msm_ehci_dt_match); static struct platform_driver ehci_msm_driver = { .probe = ehci_msm_probe, .remove = ehci_msm_remove, + .shutdown = usb_hcd_platform_shutdown, .driver = { .name = "msm_hsusb_host", .pm = &ehci_msm_dev_pm_ops,