From patchwork Wed Oct 23 12:57:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 177283 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp688275ill; Wed, 23 Oct 2019 05:58:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxICQSTFT1pl6IiDQwiahZLFq0SJCTXurofWM1KpRtAIWgTTD1IkPp0OL/O+9LyR4HLhm4w X-Received: by 2002:a17:906:3ecc:: with SMTP id d12mr7034015ejj.52.1571835523904; Wed, 23 Oct 2019 05:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571835523; cv=none; d=google.com; s=arc-20160816; b=pcONu1fTnrKFW/HHcbBroEXOXizta7i/SadOZSPqqOg1t9Ou5bNJW3iIJ4t9uuN9oD vM9NzjZYvM12KO3QZ64ksaLoeQn7KsUaP/zna3Z+tkIThIDGRf9j4AviO4sqTD4q5s1l Ywa/RdBU1YpEt0ZmMgQCkmgSpXQW7PRraFqT94Zvp4rp2vP48CPO31bUxufNSX6eZ7TC Xgk22232Lprkym4EYc/bP51uQCVoYIBqlVR8XT7b+zmKr4n5QMKzPt12iuAHwff4jWvN +idMUuFQnmjlKvyvN9zhgUdzl9LKcbBqaV2svB7NhSa9jT8WgXTzY1pdfxgsvKv3D8u5 bfEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=P6eFdtK+KQxmYKfuUnnvAtDNy0O8X0nYyKSWPvRJKzQ=; b=y1Ff+5vxG2Y6fJVr52W2psb9JSDsHgHcPdxgspqPwZZNWlrocutz5Qo6hVO/gu4rkC uii2iAfwaOot82W8n6DH0pI4nGUoJcoOEj4rUVVWWH9MhSrQT7ZbFQKfLMb5tWHjffdy WNaGlBLP+pqYESGbMUoFQYmI7PtV7hiX3RCga5/6GZgBGdUGylsyQdRFtlA+/TpBTm7f cleJHka1oRIuO7PnMiaSLBuIKlUqRGCgC1eEIwbRaE6MCe2LQqE2T3fE7n211g5yJuje QYjsdYzgir8Y6iVr3BXUZpWr6oLFKgaOE/PIsc50npjtO1coM+npV/pacIbyw2sT/7s1 ukHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=feccwS9e; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24si5064698eda.446.2019.10.23.05.58.43; Wed, 23 Oct 2019 05:58:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=feccwS9e; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405472AbfJWM6m (ORCPT + 8 others); Wed, 23 Oct 2019 08:58:42 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50296 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405447AbfJWM6l (ORCPT ); Wed, 23 Oct 2019 08:58:41 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9NCwblk040880; Wed, 23 Oct 2019 07:58:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571835517; bh=P6eFdtK+KQxmYKfuUnnvAtDNy0O8X0nYyKSWPvRJKzQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=feccwS9eartm0CHg3TNaBNKDEvBSxz1DZR8iDZAw+onlM3l+aXBHnwXmC0zj2eQJH r8BkI9wLm2D5TWYX9XC9wh56NvPp3iLobs4eYJZXV/LWm9ec5nZJ1G49iODWs4yJ6O +s6vpVrIvv1V2rvbvwyGmCsg6GVYh0sQRnWRurc8= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9NCwbUo042820 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Oct 2019 07:58:37 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 23 Oct 2019 07:58:27 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 23 Oct 2019 07:58:27 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9NCw5oG061147; Wed, 23 Oct 2019 07:58:35 -0500 From: Kishon Vijay Abraham I To: Rob Herring , Kishon Vijay Abraham I , Roger Quadros , Jyri Sarha CC: Anil Varughese , , Subject: [PATCH v2 12/14] phy: cadence: Sierra: Use correct dev pointer in cdns_sierra_phy_remove() Date: Wed, 23 Oct 2019 18:27:33 +0530 Message-ID: <20191023125735.4713-13-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191023125735.4713-1-kishon@ti.com> References: <20191023125735.4713-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org commit 44d30d622821d3b ("phy: cadence: Add driver for Sierra PHY"), incorrectly used parent device pointer to get driver data. Fix it here. Fixes: 44d30d622821d3b ("phy: cadence: Add driver for Sierra PHY") Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index affede8c4368..04c28cbb6d39 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -623,7 +623,7 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev) static int cdns_sierra_phy_remove(struct platform_device *pdev) { - struct cdns_sierra_phy *phy = dev_get_drvdata(pdev->dev.parent); + struct cdns_sierra_phy *phy = platform_get_drvdata(pdev); int i; reset_control_assert(phy->phy_rst);