Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1005829ybi; Wed, 3 Jul 2019 07:59:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUYDB7UokHvMEWYsWmyKFi9yYxdHkaROBKh4MbP1FXAcOpDlIt0CgTKIsdt5/+ND6Oavfj X-Received: by 2002:a17:90a:35e6:: with SMTP id r93mr13431904pjb.20.1562165968845; Wed, 03 Jul 2019 07:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562165968; cv=none; d=google.com; s=arc-20160816; b=b2M0bDDnC0DJajDMQJjGK5pdg4PsTmjUy2AJBBqCBYFuXpZvzeVmXybyuPNHOoTU24 EqbzENnVRVp+aSkfB2ambPWO6sxmNhbk84KlFoxbpdoxQr0h5uWGogVRcN8SLQDB7Som OYe0Vsefx3VUVByLc/36qIn6oCP6Pz4T7hx/n8wHqVIO/ZxxZvAkkzicNuSOiZjoPiKc 9NJ8v31b0AGfp1RrdX5PDK7uYMrW7O/bdYUPinpiOf9dd6w3dcgMJ3rSN4N+aEm1qa/1 VHsqARvLw6pIzm1yo9dnY+kkzL5BaZfd17ePmp5AvHZD6b3c2Ga4N00fUqykfl9X/4cS ijkg== 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=bGEzy/yu8zoHgMjIwJXxiOy7oEx51Hm5u0ZX7CCMEbQ=; b=smJZjLXGIn++l6Gu17DS+7PHa6iYn+LDa59hC0yELOZcHmK+QBb431gCqEIuMzheDc gsSfbr2CO5icLaq70lZAAVHLmEnI02I2a77v8LcPK1G5i7LAJ0+UzVdSZxwEmTWuA4RZ PdplckE70SQDTPNcg7WsOORYlXbyD4pYDo0lZ+jFp1gYepIG0HNBVM/yqczkRyod/roy 2VyEJ60dkQVURYyYpiiRqGp7d+zhbBIxJU6Dzh0wGWdquLnRe8hL9AS+C+l5axoGxZSP BYHlyIkBjc3c9gfogwXoVMgFgCZdcur04PCeHYxKj8iDI0CzGutH0UAjTaL+HmytCfP2 WAmQ== 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 w21si2473604plq.91.2019.07.03.07.59.12; Wed, 03 Jul 2019 07:59:28 -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 S1726760AbfGCO4t (ORCPT + 99 others); Wed, 3 Jul 2019 10:56:49 -0400 Received: from inva020.nxp.com ([92.121.34.13]:54540 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfGCO4t (ORCPT ); Wed, 3 Jul 2019 10:56:49 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 31B401A0DC7; 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 25A781A03A1; 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 D8FEF205F0; Wed, 3 Jul 2019 16:56:47 +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 1/3] bus: fsl-mc: remove explicit device_link_del Date: Wed, 3 Jul 2019 17:56:38 +0300 Message-Id: <1562165800-30721-2-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_del appearances from the fsl-mc bus. Signed-off-by: Ioana Ciornei --- drivers/bus/fsl-mc/fsl-mc-allocator.c | 1 - drivers/bus/fsl-mc/mc-io.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/bus/fsl-mc/fsl-mc-allocator.c b/drivers/bus/fsl-mc/fsl-mc-allocator.c index 8ad77246f322..cc7bb900f524 100644 --- a/drivers/bus/fsl-mc/fsl-mc-allocator.c +++ b/drivers/bus/fsl-mc/fsl-mc-allocator.c @@ -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); diff --git a/drivers/bus/fsl-mc/mc-io.c b/drivers/bus/fsl-mc/mc-io.c index 3ae574a58cce..d9629fc13a15 100644 --- a/drivers/bus/fsl-mc/mc-io.c +++ b/drivers/bus/fsl-mc/mc-io.c @@ -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); -- 1.9.1