Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934855AbdC3Ta7 (ORCPT ); Thu, 30 Mar 2017 15:30:59 -0400 Received: from mail-vk0-f42.google.com ([209.85.213.42]:36571 "EHLO mail-vk0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934667AbdC3Taz (ORCPT ); Thu, 30 Mar 2017 15:30:55 -0400 MIME-Version: 1.0 In-Reply-To: <1490106806-3936-1-git-send-email-piotrs@cadence.com> References: <1490106736-2242-1-git-send-email-piotrs@cadence.com> <1490106806-3936-1-git-send-email-piotrs@cadence.com> From: Ulf Hansson Date: Thu, 30 Mar 2017 21:30:53 +0200 Message-ID: Subject: Re: [v5 4/4] mmc: sdhci-cadence: refactor probe function To: Piotr Sroka Cc: "linux-mmc@vger.kernel.org" , Adrian Hunter , "linux-kernel@vger.kernel.org" , Masahiro Yamada Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 35 On 21 March 2017 at 15:33, Piotr Sroka wrote: > Use added dev variable for devm_clk_get. > > Signed-off-by: Piotr Sroka Thanks, applied for next! Kind regards Uffe > --- > 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); > > -- > 2.2.2 >