Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1004240ybi; Wed, 3 Jul 2019 07:57:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSghkvt89I1im2jtMETvr3xLiD/eZi9nxG8qrlQhinAAtYG8NzHiiwn67B1KJJF3c/dL4t X-Received: by 2002:a65:5347:: with SMTP id w7mr37313657pgr.375.1562165862343; Wed, 03 Jul 2019 07:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562165862; cv=none; d=google.com; s=arc-20160816; b=ktWFCxn3k3/bgwx+V4uwGS6PwnO+lEFdWr5rKb/kzbnVOj7DwPzogIFJ1Itpfuj1ZF SwkDgfIYuzX3DH7K7I978g0q4WDMlIjDxEfrsyUOzZurp3Co05Lz0TCFi6lA6SrRILQe saLyLzWRTgRivEQBuod/WnM/mvjcDh9qDRudYSz7sPO3ZFWnBRu+egwdYt9gO8deCzx2 1FRXUhPxbHuPkmoWNuUzH4J+Ryh4l8dxoXMDsNvO9j3jAYNhP4IHmERYMKGQx98NL6lm JDw4E/TZ/Wesu7pZ0z+uGKoAWjpvnPkwfMLozzjlxGv8Cm4+2cqprkrSAnNDuE+eWWaR 4+lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=BIEKaJXKRCT+x3tsP1bMafd8/C8Uq5tvmavjrJzxfKQ=; b=Bx/GEwIQfDgHBbYP4n0XD1Hks8Wq0HaDk6gaIeFelBnhjVCpheOxvyGofIzyui7USo Hm4qK/fh64GvhAdslnuVX6XtHg+ALP2dFV8M1da5It+MBdzibj473XfhtrUUre4mWgAo SRAsK7NMYHeMRiqYJkdN3NUmuKfVVmIFzzBu6iLiLx/UyCJ/pioFIp8b1Sk3zl+l+fwt 0WOQzb8WJtonIkUtc9gz12QF06K2yIn4uiKztONpbusHE1ytGKN3Fu/oJFUz2GsamcK5 gA7XLA5XXs+WEB7nWw71DvvSFnOwe2mO6Ofqu3ucK2vOh+H6nQ/k2579Y5/U7q0dqwfr HCEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id co12si2623401plb.197.2019.07.03.07.57.26; Wed, 03 Jul 2019 07:57:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbfGCO4y (ORCPT + 99 others); Wed, 3 Jul 2019 10:56:54 -0400 Received: from inva020.nxp.com ([92.121.34.13]:54550 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbfGCO4u (ORCPT ); Wed, 3 Jul 2019 10:56:50 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8A4DF1A03A1; Wed, 3 Jul 2019 16:56:48 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7E9021A016C; Wed, 3 Jul 2019 16:56:48 +0200 (CEST) Received: from fsr-ub1464-137.ea.freescale.net (fsr-ub1464-137.ea.freescale.net [10.171.82.114]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 3485E205F0; Wed, 3 Jul 2019 16:56:48 +0200 (CEST) From: Ioana Ciornei To: leoyang.li@nxp.com Cc: laurentiu.tudor@nxp.com, Roy.Pledge@nxp.com, linux-kernel@vger.kernel.org, Ioana Ciornei Subject: [PATCH 2/3] soc: fsl: dpio: remove explicit device_link_remove Date: Wed, 3 Jul 2019 17:56:39 +0300 Message-Id: <1562165800-30721-3-git-send-email-ioana.ciornei@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1562165800-30721-1-git-send-email-ioana.ciornei@nxp.com> References: <1562165800-30721-1-git-send-email-ioana.ciornei@nxp.com> Reply-to: ioana.ciornei@nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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