staging: fsl-mc: Fixed bug in fsl_mc_allocator_remove
authorJ. German Rivera <German.Rivera@freescale.com>
Sat, 17 Oct 2015 16:18:20 +0000 (11:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 03:53:38 +0000 (20:53 -0700)
commit6958cd44834ecd1e490be94343c44fc64076d391
treef5d2b83336e02f8fb0747fca3d351343ca50e661
parent95e9a09af4b55b8a1daa4d62afb287994aecfb8e
staging: fsl-mc: Fixed bug in fsl_mc_allocator_remove

Call fsl_mc_resource_pool_remove_device() only if mc_dev->resource
is not NULL.

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