Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932765AbdC2NLb (ORCPT ); Wed, 29 Mar 2017 09:11:31 -0400 Received: from mga14.intel.com ([192.55.52.115]:44907 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932308AbdC2NL3 (ORCPT ); Wed, 29 Mar 2017 09:11:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,241,1486454400"; d="scan'208";a="1113275493" Subject: Re: [v5 4/4] mmc: sdhci-cadence: refactor probe function To: Piotr Sroka , linux-mmc@vger.kernel.org References: <1490106736-2242-1-git-send-email-piotrs@cadence.com> <1490106806-3936-1-git-send-email-piotrs@cadence.com> Cc: Ulf Hansson , linux-kernel@vger.kernel.org, Masahiro Yamada From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Wed, 29 Mar 2017 16:03:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1490106806-3936-1-git-send-email-piotrs@cadence.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 797 Lines: 28 On 21/03/17 16:33, Piotr Sroka wrote: > Use added dev variable for devm_clk_get. > > Signed-off-by: Piotr Sroka Acked-by: Adrian Hunter > --- > Changes for v5: > - patch created in v5 > --- > drivers/mmc/host/sdhci-cadence.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c > index c3c7090..5aa238d 100644 > --- a/drivers/mmc/host/sdhci-cadence.c > +++ b/drivers/mmc/host/sdhci-cadence.c > @@ -305,7 +305,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) > int ret; > struct device *dev = &pdev->dev; > > - clk = devm_clk_get(&pdev->dev, NULL); > + clk = devm_clk_get(dev, NULL); > if (IS_ERR(clk)) > return PTR_ERR(clk); > >