Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7495128rwl; Thu, 23 Mar 2023 05:16:39 -0700 (PDT) X-Google-Smtp-Source: AK7set/NGL89SbPauGMjcF8rbQ+dzfMFpDkVugUDVQDdElQeLqITuyHrCuVMNlgrzl6B6PZN3qan X-Received: by 2002:a17:906:341a:b0:92f:a00c:ee52 with SMTP id c26-20020a170906341a00b0092fa00cee52mr9763285ejb.18.1679573799074; Thu, 23 Mar 2023 05:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679573799; cv=none; d=google.com; s=arc-20160816; b=dtnkOE/a6cV2xgMHoz1oeUJSBw/KvfOrMD4fYzT1riXbM2Bkmb7q0rMDmxk/EQmXTH h+XNloaxPvPX3PtSUJnIYv6ASrUwU9Rwnh/+oxeMAbVs1j7HnFF1BIoFhz+IsKhBY8d0 uMeNH+oMvrXYlHDB4HMJKWjrdL7JNwj7tznsLtB1EBxtbQOIPrWJn+mgRTIiuEBUF3nt EcEhgLyEIxhc+pOYSyAWrWiE4l88zrSfMDGfvsTi0uQv4k+slFaqNxodawxupA/0Fs21 neR9ZRITAwp84xr98ZYN5vYkwBykAVdilSXyreZmm7/EOzp7gw6xjU4FXcD705YrMPvz Ts2w== 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=QHbs0rnNZeieI4I/+z7njBcl6R6MpIcd0316GA7EDq8=; b=KbSY2HcjeUrDVNSprNAKfV+y7pD2fJ0EYBb+105FG3va5G2kDX5lUG54b5oHPXd0m6 jQuy6HAC1R5hcPLWzr7OyLCO4EQbRPQVHlldI9E1evjaNwAKteO3OEPe1aGfi1ppOyQ8 Ts+W/DkhtX+QAVTefql/CUlUVp1lpiQQ1ExvtruWxN5aHA18VTVZ15utLZySwooCBB4y 8uOjPUOHFr5utYEwtnEfUWFDqXkk7vkycob46cnb8NegXm+PbrC+dv2DkGJuWX8Net/Q pusSAX9gLwjYmBxmsY0+Wdgxpfv+0s4VcRk0mmNctiOtJdXEaTYbCUgjTOYAYUb1gdOB zbLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DPlkjAbo; 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 v15-20020a17090651cf00b008deaca3a01csi16974509ejk.221.2023.03.23.05.16.14; Thu, 23 Mar 2023 05:16:39 -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=DPlkjAbo; 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 S231211AbjCWMNx (ORCPT + 99 others); Thu, 23 Mar 2023 08:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbjCWMNm (ORCPT ); Thu, 23 Mar 2023 08:13:42 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DF8B20A3C for ; Thu, 23 Mar 2023 05:13:36 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id s67so7673796ybi.5 for ; Thu, 23 Mar 2023 05:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679573615; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QHbs0rnNZeieI4I/+z7njBcl6R6MpIcd0316GA7EDq8=; b=DPlkjAbo4Yl5mr6xKESFph0Zi3CIqqAuq13v8w89o9AGuE7Z3fAuMErAfPzSd5IJc6 OmkVcToFh+y3TBHkUI+FQUPepXEwa8wzvHVjlX7+hqXYehySbcSNKYpWysAYtVpaaMfF JpwTbY/HOQkyiU7BdTBoxlQnRfHxadYvKU8qsFUt5RzcYtI4E7tfVwL4mrKiJJKy+6Kt KZEV8uc59LuvSYNILXuYumYFsbw+epMpGyhQLR/PjdEggzG2Mf1roScTsA4an1xSzFbs OGfCBW2r4ZbqLt8abAaeaJHwff3VjWsfk0NFR3LeZtzQeNCP5TQBati9DwkrLAjXZ602 rBOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679573615; 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=QHbs0rnNZeieI4I/+z7njBcl6R6MpIcd0316GA7EDq8=; b=ED07rYFryCdj5TvuzAowATCfunVb0HswbtnNHPsNl2ax9qQKUC8WrdNLwDYv/4iACE bvmFPOUJRpCbqukMaDhl2zWKOjEvn604IHes4W2R3D9aAzjWB6ldWUhQztkGHaHeSFbM n9nPNT9fjHt7RAsLbNUFNS+8L4FGWGMNBrojWVyBs2pkNtRqYd8YQQqzZtvM31lmJUII hfrVuBQmf6pJfsEiccT1tbFnowxVD5/BAuK9nTupoixU0cHe9g6r1VlUKodexGvO7Sb9 nBWjjLyTBMPYTgu10ILoIBp+5HNe2PVnFuGHPSdEPYyLDRdEvUVyYRKl8RvqKnGGROux Dkqw== X-Gm-Message-State: AAQBX9e7MypXJRcDUxrDMsHL5CSSS9YFNf9by9Qsys1XdAwSPIwMXyCL LL5+ZUzABQmz5lhLgZDfU7aRN6G5FOrYQgy0ApPnfA== X-Received: by 2002:a05:6902:1689:b0:b75:8ac3:d5d9 with SMTP id bx9-20020a056902168900b00b758ac3d5d9mr947479ybb.3.1679573615378; Thu, 23 Mar 2023 05:13:35 -0700 (PDT) MIME-Version: 1.0 References: <20230315054113.48898-1-yang.lee@linux.alibaba.com> In-Reply-To: <20230315054113.48898-1-yang.lee@linux.alibaba.com> From: Ulf Hansson Date: Thu, 23 Mar 2023 13:12:59 +0100 Message-ID: Subject: Re: [PATCH -next] mmc: owl-mmc: Use devm_platform_get_and_ioremap_resource() To: Yang Li Cc: afaerber@suse.de, mani@kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@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:41, 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/owl-mmc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c > index 3dc143b03939..6f9d31a886ba 100644 > --- a/drivers/mmc/host/owl-mmc.c > +++ b/drivers/mmc/host/owl-mmc.c > @@ -578,8 +578,7 @@ static int owl_mmc_probe(struct platform_device *pdev) > owl_host->mmc = mmc; > spin_lock_init(&owl_host->lock); > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - owl_host->base = devm_ioremap_resource(&pdev->dev, res); > + owl_host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); > if (IS_ERR(owl_host->base)) { > ret = PTR_ERR(owl_host->base); > goto err_free_host; > -- > 2.20.1.7.g153144c >