USB: OTG: msm: Fix bug in msm_otg_mode_write
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Tue, 15 Feb 2011 04:12:35 +0000 (09:42 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 18:55:15 +0000 (10:55 -0800)
commite2904ee43c7009e6c4fc18738f15051312f22483
treedebafb5c4f9bb237423c9dc92fb907221a80b7ae
parent7018773aca1b46e4f29a8be2c6652448eb603099
USB: OTG: msm: Fix bug in msm_otg_mode_write

The driver private data is retrieved incorrectly which results
a crash when written into "mode" debugfs file.

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/msm72k_otg.c