OSDN Git Service

usb: chipidea: ci13xxx_imx: fix error path
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 13 Jun 2013 14:59:48 +0000 (17:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 20:45:46 +0000 (13:45 -0700)
commit770719df7b2cee6b4c497cfacee9cb8427fd34c2
tree79f1ca160b24a8d0d3aced3e1da5f030d55223b3
parente4ce4ecd962e17a92974b3c7ba063d29fce8c86f
usb: chipidea: ci13xxx_imx: fix error path

If usbmisc_ops->post() fails it should point the error path to release all
previously acquired resources, so adjust it to call ci13xxx_remove_device().

While at it, remove the unnecessary 'plat_ci' indirection, as we can directly
use the private structure.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci13xxx_imx.c