From patchwork Mon Dec 16 09:57:10 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: 181658 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4091653ile; Mon, 16 Dec 2019 01:56:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyBSAPEibAInZYROSTN8vFdy0YAUOMFaK784rjoQtTVIQkQT0Oo7kHn30wkx2OC2tUs8nv2 X-Received: by 2002:a05:6830:2110:: with SMTP id i16mr30148334otc.337.1576490208015; Mon, 16 Dec 2019 01:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576490208; cv=none; d=google.com; s=arc-20160816; b=keoYXwY2RwXhwcC7ZjOzmCoPuKuE9BsOdzSYb5s8230qYleOg6pYOtdGwvU7BKbpoj wO86xr6j2G5kXJjEfTeZyqxe60wA3BXHy/M9mf0uPDQkWjKOzL6iGo53yVgwSygGb2Wd q2zDmI9bgvymLp+zYOCRXyMnDYto95Scn2MsgairXtO/hygmjPoP8fOlNaARt1dYR+yW 6zL4XlDMKCrQKIzxqSRmulFf1vluqQwaMef+fY+C0QqwksKRtVMLoXzUc7FSH7ytqbEO KUr/ZkRNCtYF3eF3QdyKqZ1gn/gGNEaswpw9FyNWdve1diLSUlb0Y8M26sLB1/ijB9sz xwsA== 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=HnvQVBmnp47FnJbchzKE+jfH8rWFeTqVgl7/AlfabmE=; b=gI5FLKxC8W8pS3kSLA56XVnKsGhosnDYCmbOUQJvDfFQ64gre6LVNFJG5n3eJGJNzE vIEJ++GoYU/numvdfXbpKrzmkVZ1nHLqxSGGKZNv04T1aAdu6DiuQz3I2ajXsd7NYG9n COaKgH9cb5FNqT/cgnWtRspQvdR3Di21glrOAv9Dtz7peaGgba5Ga9NJ9dj2JzJvO6vM ZaXOTh9JWOPsjps/1Enl2CUkRww3VriyZJ9WiN9WJgLz8Do2hzmQsAfrhl6Uk4GyH+Lp 74foL9AC6cSm7RqfYzH7ZTxCrqLSRT1gU2bFen+3O/Yx+P6C0QRJl9JxDbk3wLuTcvku g7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kmr3hKE0; 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=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 t28si10202264otr.16.2019.12.16.01.56.47; Mon, 16 Dec 2019 01:56:48 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kmr3hKE0; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbfLPJ4q (ORCPT + 27 others); Mon, 16 Dec 2019 04:56:46 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36400 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727426AbfLPJ4o (ORCPT ); Mon, 16 Dec 2019 04:56:44 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBG9uVDa129936; Mon, 16 Dec 2019 03:56:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576490191; bh=HnvQVBmnp47FnJbchzKE+jfH8rWFeTqVgl7/AlfabmE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kmr3hKE0R27FjGau+nVOg+fS7q0Xg8r4yGUeCBTvQiml7/JszRaGiZ+I63/IY8FoL SasKO9DJYOatYC+avVngk9o6IiHom1W40Q8QxsTuKsTxrrQF6IRTblTpsAiiQR2DJJ cuSBPJRwOSRs81naaIZu5RJv751zsexwyb7G4zz0= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBG9uVWu038426; Mon, 16 Dec 2019 03:56:31 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 16 Dec 2019 03:56:31 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 16 Dec 2019 03:56:31 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBG9tsJV084408; Mon, 16 Dec 2019 03:56:28 -0600 From: Kishon Vijay Abraham I To: Rob Herring , Anil Varughese , Roger Quadros , Jyri Sarha CC: , Kishon Vijay Abraham I , , Subject: [PATCH v4 12/14] phy: cadence: Sierra: Use correct dev pointer in cdns_sierra_phy_remove() Date: Mon, 16 Dec 2019 15:27:10 +0530 Message-ID: <20191216095712.13266-13-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191216095712.13266-1-kishon@ti.com> References: <20191216095712.13266-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 44d30d622821d3b ("phy: cadence: Add driver for Sierra PHY"), incorrectly used parent device pointer to get driver data. Fix it here. 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 82466d0e9b38..eb87f1a0a596 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -625,7 +625,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);