]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: ci13xxx_imx: fix error path
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 13 Jun 2013 14:59:48 +0000 (17:59 +0300)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:07 +0000 (09:54 +0800)
commit2686f5536fdc2c5f52a57cb4988354267bb42299
tree122320478ca1d93cd5ba14fc83845fe5c275c17f
parentf634082a869b2d93e210b75426951e658a9914cd
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