From: Fabio Estevam Date: Thu, 13 Jun 2013 14:59:49 +0000 (+0300) Subject: usb: chipidea: ci13xxx_imx: remove reg_vbus X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~78^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e56ae54ff157701ab811b03cab195d8e5eca6628;p=pandora-kernel.git usb: chipidea: ci13xxx_imx: remove reg_vbus There is no need to keep a 'reg_vbus' indirection, so get rid of it. The motivation for doing this change is that in the case of error, the current code only sets the local reg_vbus to NULL instead of updating the private structure 'data->reg_vbus'. Updating only the local reg_vbus is wrong, since we currently check for data->reg_vbus in the ci13xxx_imx_remove() function. In order to avoid such issue, just use 'data->reg_vbus' directly. Signed-off-by: Fabio Estevam Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed