]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
soc: fsl: dpio: remove explicit device_link_remove
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 3 Jul 2019 14:56:39 +0000 (17:56 +0300)
committerLi Yang <leoyang.li@nxp.com>
Thu, 15 Aug 2019 23:20:20 +0000 (18:20 -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_remove appearances from the dpio driver.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/dpio/dpio-service.c

index b9539ef2c3cdcce9eb02855702f344f90f241ba7..518a8e081b490e96aeb2c32b185cbe81e8d72327 100644 (file)
@@ -305,8 +305,6 @@ void dpaa2_io_service_deregister(struct dpaa2_io *service,
        list_del(&ctx->node);
        spin_unlock_irqrestore(&d->lock_notifications, irqflags);
 
-       if (dev)
-               device_link_remove(dev, d->dev);
 }
 EXPORT_SYMBOL_GPL(dpaa2_io_service_deregister);