drivers: switch: fix unregister of switch device
authorManoj Gangwal <mgangwal@nvidia.com>
Wed, 1 Feb 2012 10:31:20 +0000 (15:31 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Mon, 13 Feb 2012 14:39:40 +0000 (06:39 -0800)
commit12b2e1045b6975cf259f477abad1a8b211e73158
treed06ac453f6d38c772b1f25286ac23c740801977c
parentcd01979348c680bcec4821e4f5a78d0e51080e10
drivers: switch: fix unregister of switch device

Driver data has to be set before destroying the
device. Issue has been found in Secure OS.

Bug 931758

Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/78688
(cherry picked from commit 1a79ae32474868a1ae457f01d0f9e10f4c21f59c)

Change-Id: Iccc6adff5f79898e09d410c8898788597ac4859d
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82710
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
drivers/switch/switch_class.c