[PATCH 07/11] staging: fsl-mc: fix asymmetry in destroy of mc_io

2016-06-22 Thread Stuart Yoder
From: Bharat Bhushan An mc_io represents a mapped MC portal. Previously, an mc_io was created for the root dprc in fsl_mc_bus_probe() and for child dprcs in dprc_probe(). But the free of that data structure happened in the general bus remove callback. This asymmetry

[PATCH 07/11] staging: fsl-mc: fix asymmetry in destroy of mc_io

2016-06-22 Thread Stuart Yoder
From: Bharat Bhushan An mc_io represents a mapped MC portal. Previously, an mc_io was created for the root dprc in fsl_mc_bus_probe() and for child dprcs in dprc_probe(). But the free of that data structure happened in the general bus remove callback. This asymmetry resulted in some bugs due