bus: fsl-mc: remove explicit device_link_del
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 3 Jul 2019 14:56:38 +0000 (17:56 +0300)
committerLi Yang <leoyang.li@nxp.com>
Fri, 16 Aug 2019 19:17:35 +0000 (14:17 -0500)
Starting with commit 72175d4ea4c4 ("driver core: Make driver core own
stateful device links") stateful device links are owned by the driver
core and should not be explicitly removed on device unbind. Delete all
device_link_del appearances from the fsl-mc bus.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Acked-By: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/bus/fsl-mc/fsl-mc-allocator.c
drivers/bus/fsl-mc/mc-io.c

index 8ad77246f3221fc2e34fb98fa21c95f84099684e..cc7bb900f5249860658a839ae1a79383c018c791 100644 (file)
@@ -330,7 +330,6 @@ void fsl_mc_object_free(struct fsl_mc_device *mc_adev)
 
        fsl_mc_resource_free(resource);
 
-       device_link_del(mc_adev->consumer_link);
        mc_adev->consumer_link = NULL;
 }
 EXPORT_SYMBOL_GPL(fsl_mc_object_free);
index 3ae574a58ccee5369d249cfb603521b32b1093e8..d9629fc13a15538115abb0fc46702087c0d401d7 100644 (file)
@@ -255,7 +255,6 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io)
        fsl_destroy_mc_io(mc_io);
        fsl_mc_resource_free(resource);
 
-       device_link_del(dpmcp_dev->consumer_link);
        dpmcp_dev->consumer_link = NULL;
 }
 EXPORT_SYMBOL_GPL(fsl_mc_portal_free);