dprc_scan_container() function is no longer called on a device
endpoint lookup, which, in turn, called fsl_mc_init_all_resource_pools.
Scanning for objects is done using the dprc_scan_objects()
function directly.
Signed-off-by: Robert-Ionut Alexa <robert-ionut.alexa@nxp.com>
* Force a rescan of the devices in this container and retry the lookup.
*/
if (!endpoint) {
- err = dprc_scan_container(mc_bus_dev, true);
+ struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev);
+
+ mutex_lock(&mc_bus->scan_mutex);
+ err = dprc_scan_objects(mc_bus_dev, true);
+ mutex_unlock(&mc_bus->scan_mutex);
+
if (err < 0)
return ERR_PTR(err);
}