staging: fsl-mc: Fixed bug in dprc_probe() error path
authorJ. German Rivera <German.Rivera@freescale.com>
Wed, 6 Jan 2016 22:03:27 +0000 (16:03 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:10:12 +0000 (19:10 -0800)
commit8804f9fc5cf38c29c56f041341685edfc623f427
tree5e6e26fa1e6e529dd23a1c82129855bbc57e7784
parent232ae8f2494e3ba445e7f07705f5c3296102bb4c
staging: fsl-mc: Fixed bug in dprc_probe() error path

Destroy mc_io in error path in dprc_probe() only if the mc_io was
created in this function.

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dprc-driver.c