msm: footswitch-8x60: Use correct disable ops in late_footswitch_init
GFX2D0 and GFX2D1 should not use footswitch_disable(). Instead
of calling footswitch_disable() on all unclaimed footswitches in
late_footswitch_init, use the ops pointer to call the correct
function.
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/footswitch-8x60.c b/arch/arm/mach-msm/footswitch-8x60.c
index a3bc92b..6ba3962 100644
--- a/arch/arm/mach-msm/footswitch-8x60.c
+++ b/arch/arm/mach-msm/footswitch-8x60.c
@@ -575,7 +575,8 @@
/* Turn off all registered but unused footswitches. */
for (i = 0; i < ARRAY_SIZE(footswitches); i++)
if (footswitches[i].rdev && !footswitches[i].is_claimed)
- footswitch_disable(footswitches[i].rdev);
+ footswitches[i].rdev->desc->ops->
+ disable(footswitches[i].rdev);
mutex_unlock(&claim_lock);
return 0;