]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 20:45:46 +0000 (13:45 -0700)
commit208d456bcacd08b3cb6da7fe53a7b2ae171da6f3
tree79f1ca160b24a8d0d3aced3e1da5f030d55223b3
parent3049db23f783a71f171ff0976c1a607c0076e0b4
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