Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7494526rwl; Thu, 23 Mar 2023 05:16:12 -0700 (PDT) X-Google-Smtp-Source: AK7set83cBO8WnEwG1W+Ad+PFk6VihrXsTYReF3kgApCwAKQAiwJ7DGUu36gDmeGThAJvygENL7h X-Received: by 2002:aa7:c405:0:b0:4fa:2363:6806 with SMTP id j5-20020aa7c405000000b004fa23636806mr4945015edq.17.1679573772495; Thu, 23 Mar 2023 05:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679573772; cv=none; d=google.com; s=arc-20160816; b=t0+d93/9mSJ7aA+ywDY5/KEVfvoB1XPy8Ogdio7VLfpMEmOz260hkLfTa2kIIVioVo S2LDU8wtnHHHaGOX0cBdm/0vjE7BSiLwLU4ICTyTaKzFIlguLtra1zzvMJ8SGWnlFO3A WYiW4a3oOEdVKNFFWq3EdhWgMOnaEJYPo35olZQZ5qrUHuzDhH8eiaxtlMo6tTF0qtJW xJ2fxr8Acue5InaaIgrCRr88HpYZuqNXCSIxhvYV7HSF9osI5D0WBppXBP0J0dUBnC1P eioe2wV/aRPESF5sXYmw08xu+Cvox3oGzk6q8KwiXiVjwvInHtp/W9uZVS1qF3e1XWKC bqUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DrtQ8CwDcwRA/DKiIVaGSBD/b1SSGaInqX/K7jpVRKA=; b=NIyGgJRYPHmqowRwXlLclnooFV9wEiphX5QMuB/r7HpyVtvfWJoRIvPt3CeTHmvvOU SXKNzrN/UjM5DucHvQhfyplKx7NroQWj/6Waihft0hjZ/E54PTj4SMqZ0YCO2x0IJRDA dSIoAanVwk/oPDuyYaBegLZs7Gs7preU2t1tIUlBYZ515Wwpk+crRmWX9a9qaNu70om0 mjCA5bx1XGH0bbkLKCQypryo50v0LLTnXPaz1HBOPZrImJlMYQJnI8cTanggBstyQydB 7emkHBGuVd7iYu2KWodpBZntm7JxRampFKY4riqzBxUv6tY1grepFuwNj8Zv73aU4iUv Je0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LXcwVizv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mj25-20020a170906af9900b008b2712f79e8si15430834ejb.940.2023.03.23.05.15.48; Thu, 23 Mar 2023 05:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LXcwVizv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbjCWMNs (ORCPT + 99 others); Thu, 23 Mar 2023 08:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbjCWMNl (ORCPT ); Thu, 23 Mar 2023 08:13:41 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E99691EFF4 for ; Thu, 23 Mar 2023 05:13:32 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id i6so24502680ybu.8 for ; Thu, 23 Mar 2023 05:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679573612; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DrtQ8CwDcwRA/DKiIVaGSBD/b1SSGaInqX/K7jpVRKA=; b=LXcwVizvFL7SjKCXKuCoQfWAYpHOQFMIsfvaBv9J6ZIhI6mlTEb/OoL/PGa2EYhDKy aQNsr29CKBreYNUaDvAFNZYVQ83GbRN6+wEcg1BKTCsqEoS/1dZnpd/FxTAtaw3BK4np 4DXFFWefgVSPCWNzoguFllSpnuEEIA6kZ9WA7WFS602rAyB2UX8afTfhNXRd7SM6+Vat AC8vmciKYPSiQF5/PEGpA4+iRnjwHaRE2jhB9ZmD8pMwnJhXaPqu4/lz8sQaJVhujOXp rvoxT99I4g/pi0v5T8Djhfz9aSpX06eQNrsM42xMbbPr4pFvchLC7xsajuWVyc19ilWz aQPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679573612; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DrtQ8CwDcwRA/DKiIVaGSBD/b1SSGaInqX/K7jpVRKA=; b=7EZ47sY0Ydy7KJd2a7fsbErf6y5Cxnw8PYN3Xp+KzOUdrubVIvw5z5xKvHIA70nI9c JYCfFagOKkmQ9O52Yj9KyyDH75fGLCxoGbtmPs07Ifef4TwewCw0jutuklIexB8bSXQw 0n2TejWXKvmXAV6hUqAYsILBIEG1qfRkB21pZlDzHwxc7ts5BcWgGFHOWTN4sVbJt6/e 93N6QhRmfioefTCxVfEm2bOB4VOK+lvNgeo+0Ce4LdJ+0MrpiBbSOGongpHZpgO9KvG2 C0Fimzkgwp6Y7kqanJt63saCwgGo83+8NhB6F1f8DDkPeM32q5XNpmCvOM9PAKuRTuXm tN5w== X-Gm-Message-State: AAQBX9ebp3Y0JYX7r1S2iKqwcnaPSv+dj6ea1yUiTxmNt9UkdwEXXJk0 1OEgPoizzO78hoDO8uwCp8d7cr0qADDMEdLd3wfDNw== X-Received: by 2002:a05:6902:722:b0:b68:7a4a:5258 with SMTP id l2-20020a056902072200b00b687a4a5258mr2072334ybt.3.1679573611981; Thu, 23 Mar 2023 05:13:31 -0700 (PDT) MIME-Version: 1.0 References: <20230315055023.61779-1-yang.lee@linux.alibaba.com> In-Reply-To: <20230315055023.61779-1-yang.lee@linux.alibaba.com> From: Ulf Hansson Date: Thu, 23 Mar 2023 13:12:56 +0100 Message-ID: Subject: Re: [PATCH -next] mmc: sdhci-of-aspeed: Use devm_platform_get_and_ioremap_resource() To: Yang Li Cc: adrian.hunter@intel.com, andrew@aj.id.au, oel@jms.id.au, linux-mmc@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Mar 2023 at 06:50, Yang Li wrote: > > According to commit 890cc39a8799 ("drivers: provide > devm_platform_get_and_ioremap_resource()"), convert > platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Signed-off-by: Yang Li Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-of-aspeed.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c > index ba6677bf7372..25b4073f698b 100644 > --- a/drivers/mmc/host/sdhci-of-aspeed.c > +++ b/drivers/mmc/host/sdhci-of-aspeed.c > @@ -547,8 +547,7 @@ static int aspeed_sdc_probe(struct platform_device *pdev) > return ret; > } > > - sdc->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - sdc->regs = devm_ioremap_resource(&pdev->dev, sdc->res); > + sdc->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &sdc->res); > if (IS_ERR(sdc->regs)) { > ret = PTR_ERR(sdc->regs); > goto err_clk; > -- > 2.20.1.7.g153144c >