xhci: tegra: fix kernel panic in tegra_xhci_remove
authorJC Kuo <jckuo@nvidia.com>
Fri, 13 Sep 2013 07:06:50 +0000 (15:06 +0800)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:44 +0000 (18:47 +0530)
commit8b6f2b8b513fb3ec296d0757394c1babe34d5468
treecc30e14430a3ac4f1305ecf082dff09e1c5837d5
parent65ccac198ccb78fd6ae0dad55f6f5c3f4eadb513
xhci: tegra: fix kernel panic in tegra_xhci_remove

tegra_xhci_remove() calls usb_unregister_notifier() with parameters
are NULL pointers. That causes kernel panic. This change fixes it.

bug 1368024

Change-Id: I10ea852659afece3b0ae18c2989ad85ee392e3c3
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/274150
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 10906950e03608b6a4a5322693bf9793e1ba175d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/usb/host/xhci-tegra.c