Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1268678ybg; Wed, 23 Oct 2019 13:03:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyigmaugQNDMrzG58AGW6r7bTa6yoXJQgJH/+YP2HiKVWrqC8D/zspo0iBMiEP4VrNnjd+h X-Received: by 2002:aa7:d04a:: with SMTP id n10mr40350747edo.14.1571861016335; Wed, 23 Oct 2019 13:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861016; cv=none; d=google.com; s=arc-20160816; b=Im4lG0PguRGm/SUzp6OChGQRFOj02nfh9Impl+3OpUHCaALlw+rT3MUsfOdxMk3XB3 ltSOK1uJ0cK4YIXfy6ridA1vqnXEIM+kkkyVIsQF1g2sRLReYybSZGllsJ+gqtJhuhyb gtv+uUxDTJ0IXP9y5y1Hb8g4YWgwmj16kDBQsoXEzDIfCOglqN5UYCiXKHRAxf6ujfg4 mbVFkNTBeFrGZQI0NiO+Vikp11vR5xWptC7jDVGlqHKoydHNeWdpeCAfZTWDPB8RNU86 35h4dlgGg1AjgzkxrDCC2xCf4QvlNXJdrX0RFvA0zodX2FI7bSbqyyLzDfpPpjxRfwro jdzw== 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=PP821+o99TFT3OlnRDydsY0BzU8ot/XXMV0hjNpFJIFtxWbK+HxBw/LO9fjLoxUCsq 0XbKqYSd4d6Ugyj36w8zVmoE9KZcCIqajGvxiqfyVHcD19Mr8o7s6BtP/oUtjQCg8CDb jtBy+hyInJyKV22kivDeIzKgz5X1wPw6ImtP3/APY+WJI/8EPzRR7dZZz0c1zJC6eu+g nxPk9OezCdDyzOJmoXmryzQTYMGk/OZQEtT2Q1nN6q/URFfp/BshVqbwD73djKDqQq8S 8jrdEsZcBJE8OMvjpeOBk2lZfdN6wx237rZB2cjxHNLKCE1/h/bMNGiEoj4qhEtOPCVK q4aA== 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 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 9si1628232ejw.272.2019.10.23.13.03.02; Wed, 23 Oct 2019 13:03:36 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=feccwS9e; 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 S2405478AbfJWM6n (ORCPT + 99 others); Wed, 23 Oct 2019 08:58:43 -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 Content-Type: text/plain 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. 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(-) 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); -- 2.17.1