arm: tegra: xmm: device set to null in unregister
authorVinayak Pane <vpane@nvidia.com>
Wed, 18 Jul 2012 02:06:54 +0000 (19:06 -0700)
committerSimone Willett <swillett@nvidia.com>
Wed, 15 Aug 2012 01:21:02 +0000 (18:21 -0700)
commitfd34a72d152169f4f90e5e5cc2151b441c97d86b
treee232293376f9ad1493bce5022c54a5e86cb8a0bc
parent63efbd193470322a8283dd79918d8ccebb1b6afe
arm: tegra: xmm: device set to null in unregister

hsic_unregister is being called multiple times
during two step enumeration process of xmm.
In failure cases when enumeration does not
complete properly, kernel panic is seen because
of extra unregister-ehci device.

Bug 1016593

Change-Id: Ibaeb20ed0dab0e906741fdfad78f7d89a3672f60
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/116626
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 675dfd18c952e6cf5748aaa305086d86b0358582)
Reviewed-on: http://git-master/r/123474
Reviewed-by: Automatic_Commit_Validation_User
arch/arm/mach-tegra/baseband-xmm-power.c
arch/arm/mach-tegra/baseband-xmm-power.h
arch/arm/mach-tegra/baseband-xmm-power2.c
arch/arm/mach-tegra/board-enterprise.c
arch/arm/mach-tegra/include/mach/tegra-bb-power.h
drivers/misc/tegra-baseband/bb-m7400.c