Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7497130rwl; Thu, 23 Mar 2023 05:18:03 -0700 (PDT) X-Google-Smtp-Source: AK7set8k/XZVEeG/609XYlwQ/1Xob4BhdfKfOQZuudh5Hz5K6nKiI4YiEBy3+adIQsNZn/ZpJCYB X-Received: by 2002:a17:906:808:b0:92b:f0d9:15f3 with SMTP id e8-20020a170906080800b0092bf0d915f3mr5202825ejd.37.1679573883171; Thu, 23 Mar 2023 05:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679573883; cv=none; d=google.com; s=arc-20160816; b=SzuOiCu0FLQ4omUrJZ+RUFhvvSFxIv0fidYYsRf3sXzn1yBXWD1MFBPXD4TC2J+ny7 G8FQ6JZMilkBoHL3t1oze4u9O1AQWeDzac2mkF39gmVlRXnSAQTOQDOpMmA8xoGkRBj8 F3WXastpi+J1t0quGLFVW2ePewTYQMB9Jd3sPo922xHtWkk04mRuLeWtSMfhSL8DDjda 6pHVKuUbnamHZZB+TScZQzrsM5iyrwVeNIAZY5/dgNDmwXJbQx+uSPhrfMQxiYTZJxL+ mZv0lVf8MSrPSDiJHMhcD4gtRlM6g9q3vhHnxhcaPnZgKHSs7aF0Afuqjh05ioE1gyzD Q+8g== 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=piZ+PkFV5WvYTk12pZZbvmVa0DMKTZ0dY4RGfTiFlGE=; b=Dk6Dc+TtVm2QAZAMxVHaDHFmvqJeqSx9o6XVmkOZfzD+fooqkCJ34X/VtFcXUmHvzW cC95kTccf4qUzxktNZXN47/EMgcoMWzo9ErdUcf0+eNneTGbfJrl34FiUoomBw3EVU9G GFEO3G8l9FROoxfGS+PIkXdtKvnCSfZ7bwZAMbyKAouhpkB21Wm/nNFSauNk3kbDyX7N W0NSpDOjVzHIv2SrkV3CLIgSYjKQzsDRNMRRE+G54nyaAidv53UifS5NgPRjNsj/1VND qEcx8LIEjKTbbS6YTfsfCbbC1fU6cAS9opKCGJtVmg0UbiPGvxt5pc+qO+8csIlSR9tR rlGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qChmhFMY; 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 a7-20020a17090640c700b008d872b541besi17471830ejk.882.2023.03.23.05.17.38; Thu, 23 Mar 2023 05:18:03 -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=qChmhFMY; 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 S231504AbjCWMOb (ORCPT + 99 others); Thu, 23 Mar 2023 08:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbjCWMOD (ORCPT ); Thu, 23 Mar 2023 08:14:03 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8718225293 for ; Thu, 23 Mar 2023 05:13:46 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id b18so5454306ybp.1 for ; Thu, 23 Mar 2023 05:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679573626; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=piZ+PkFV5WvYTk12pZZbvmVa0DMKTZ0dY4RGfTiFlGE=; b=qChmhFMYb7uAmDl3c9o+/OEyiiJWrsLk9qH+fBrZelNVKUCYekFJExMGimfH9+++64 UyOU0iHMtTi/9NJwDGZPeLR/fJwh4KRVGFrZDfxzaLxMdZLv+vkB3aPB+azsXDcr2+AB XaXp0/B5GOuzWC0stmEOFztjxGZLzZjnP71BwF0LYyIJ1mgjXPGUX8QhsZlfgpsm+AU5 UJjl1b3COQw3wyB1FqX1o5OStmXkpNaF6UnrvUbiE1RPCmg5/OSuxMDmnuZCkWSoonL4 znpcCkjRS44hkWcqprqvV7PLqGKjJEQWMBkDhU9V8RcAHl5SXZcDhjZfTAQ931ku3L3M NzCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679573626; 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=piZ+PkFV5WvYTk12pZZbvmVa0DMKTZ0dY4RGfTiFlGE=; b=tAiDswmU21NMT2jdFPtXuyQH+K05s33JWYThz4WeSaM+J+5ayK0bKAaamYZ/4U9qEV qTxpciI/yODo/dPErssWwwWslvTBHDUHxLgCYsZV1zslX8gKjh7FPPou0Lo8yvrPmh7z Z+f0MU2lIgY2kHtN6hDsM1rvAIQ1uIzIz2OfqjNLrKm08hdUMqCN3FSRFl1ydGYgK20i nb4R0YauCVf3YPw1gkXxZ5vGgxIa2sHTWWGNjA10UzNCqHiRQ+VXXYmqwBE5buBsxZ+2 3B262J25NCSSsVVGh34+EMJJaPD9hkOgSDjlNCa1oSuHc+MTE0FJiqErr73txCm/lF5t FV9Q== X-Gm-Message-State: AAQBX9cXeTZ+EQQG5uRiuyfLGdMhq/K4qG+K51ADdVtgaTHyXHTI89Cp zOBAFMMwzmr7Julnvj13XxInBAXTXtwfxv0LYkEMTA== X-Received: by 2002:a05:6902:1705:b0:b75:8ac3:d5d8 with SMTP id by5-20020a056902170500b00b758ac3d5d8mr942368ybb.3.1679573626037; Thu, 23 Mar 2023 05:13:46 -0700 (PDT) MIME-Version: 1.0 References: <20230315053127.33855-1-yang.lee@linux.alibaba.com> In-Reply-To: <20230315053127.33855-1-yang.lee@linux.alibaba.com> From: Ulf Hansson Date: Thu, 23 Mar 2023 13:13:10 +0100 Message-ID: Subject: Re: [PATCH -next] mmc: jz4740: Use devm_platform_get_and_ioremap_resource() To: Yang Li Cc: paul@crapouillou.net, linux-mips@vger.kernel.org, linux-mmc@vger.kernel.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:31, 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/jz4740_mmc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c > index 698450afa7bb..1846a05210e3 100644 > --- a/drivers/mmc/host/jz4740_mmc.c > +++ b/drivers/mmc/host/jz4740_mmc.c > @@ -1079,8 +1079,7 @@ static int jz4740_mmc_probe(struct platform_device* pdev) > goto err_free_host; > } > > - host->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - host->base = devm_ioremap_resource(&pdev->dev, host->mem_res); > + host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &host->mem_res); > if (IS_ERR(host->base)) { > ret = PTR_ERR(host->base); > goto err_free_host; > -- > 2.20.1.7.g153144c >