All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ioana Ciornei <ioana.ciornei@nxp.com>
To: leoyang.li@nxp.com
Cc: laurentiu.tudor@nxp.com, Roy.Pledge@nxp.com,
	linux-kernel@vger.kernel.org,
	Ioana Ciornei <ioana.ciornei@nxp.com>
Subject: [PATCH 2/3] soc: fsl: dpio: remove explicit device_link_remove
Date: Wed,  3 Jul 2019 17:56:39 +0300	[thread overview]
Message-ID: <1562165800-30721-3-git-send-email-ioana.ciornei@nxp.com> (raw)
In-Reply-To: <1562165800-30721-1-git-send-email-ioana.ciornei@nxp.com>

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>
---
 drivers/soc/fsl/dpio/dpio-service.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c
index b9539ef2c3cd..518a8e081b49 100644
--- a/drivers/soc/fsl/dpio/dpio-service.c
+++ b/drivers/soc/fsl/dpio/dpio-service.c
@@ -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);
 
-- 
1.9.1


  parent reply	other threads:[~2019-07-03 14:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03 14:56 [PATCH 0/3] soc: fsl: dpio: small fixes Ioana Ciornei
2019-07-03 14:56 ` [PATCH 1/3] bus: fsl-mc: remove explicit device_link_del Ioana Ciornei
2019-08-15 23:13   ` Li Yang
2019-08-16  6:02     ` Laurentiu Tudor
2019-08-16 19:54       ` Li Yang
2019-07-03 14:56 ` Ioana Ciornei [this message]
2019-08-15 23:17   ` [PATCH 2/3] soc: fsl: dpio: remove explicit device_link_remove Li Yang
2019-07-03 14:56 ` [PATCH 3/3] soc: fsl: FSL_MC_DPIO selects directly FSL_GUTS Ioana Ciornei
2019-08-15 23:09   ` Li Yang
2019-08-16 14:56     ` Roy Pledge
2019-08-16 17:03       ` Li Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1562165800-30721-3-git-send-email-ioana.ciornei@nxp.com \
    --to=ioana.ciornei@nxp.com \
    --cc=Roy.Pledge@nxp.com \
    --cc=laurentiu.tudor@nxp.com \
    --cc=leoyang.li@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.