Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7494850rwl; Thu, 23 Mar 2023 05:16:27 -0700 (PDT) X-Google-Smtp-Source: AK7set/+s9Sy51oG1GNaYBLSYkE1RPkFAUPkYbPRAbB2Fl1uuj+8uWCvuBn56KqPZeJaXvzOJwtt X-Received: by 2002:a05:6402:18:b0:502:2b1:c939 with SMTP id d24-20020a056402001800b0050202b1c939mr4069497edu.26.1679573787604; Thu, 23 Mar 2023 05:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679573787; cv=none; d=google.com; s=arc-20160816; b=v8pZzkLci6FjyTM+Y9huQacg9W6Tobi5CrxlVBGMkjgwr+oVWfJcnfGxEMuQTV+fz8 PJTnmTCRV9z58u2a9a7lejS3sLhv/ZaNNdEKrMX9z+wB3SUB+XsdLs7J/5i6VrUT1aPE KBEmzBysvCUQo2MmPyuBjWCBopn6rtGeePE3SIOe5C0uRrJtyboEpgxmBU9hWbZfIejI sIDc7N+h8m7hg8czXkL3aa+0FJxKyvOdKACVvy6X/zGVox5F43RJZlBrCPXnenSPwiT6 KJKGAwRrmVEn6FLiTB8ifXiLiggJf3AtUZZflVZUDdkmFHrYr6pkBz3W0IK0h47z5ZPO Sa6g== 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=rxdfkNfg9Cqx5PYmumxkm8NMkeCxgHCaWOIO7seRGFc=; b=ZTdBjmcfVPmZE++ZuTusQrH8wp425j1tZnRdCh5Wizd29CGxK/O1DWkVqItW1nnSFJ DOVWqqepdpAktbv8wC1WKlCA3VWauAZQnj0gD4CeAvu/6ebFGOn1m6VZ69BhjrAeP+J0 PYmYlJ53hbs/NHTSySWvcM70P62ASnEw0JtMjIkCoCGBP5ciu815woDwQqoQMCK304CA yPdKGRTZ6VoU4GGBsY+BQKA277s1G1VyZbnvdPgfo+RgUCPeY/vLAl70JOlVjO+6QHOZ Tp9wX9J8lRxVe0sbTuwkR8rnruLEe7oy89l/S7nIKc8Mg8+VYXzNviXA9uL8BSmG7DEj 1R+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oc5CC7lk; 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 c18-20020aa7c752000000b004acbb9ce157si19893481eds.237.2023.03.23.05.16.03; Thu, 23 Mar 2023 05:16:27 -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=Oc5CC7lk; 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 S230101AbjCWMOH (ORCPT + 99 others); Thu, 23 Mar 2023 08:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjCWMNq (ORCPT ); Thu, 23 Mar 2023 08:13:46 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A78FC25B8F for ; Thu, 23 Mar 2023 05:13:39 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-544b959a971so357214617b3.3 for ; Thu, 23 Mar 2023 05:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679573618; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rxdfkNfg9Cqx5PYmumxkm8NMkeCxgHCaWOIO7seRGFc=; b=Oc5CC7lkTCcR+4UrY3yOys4sw49dgOCf2d5z51X3K0DuBDgj3jifHLKiXt0FJw3gPj pbghvApM4AgjcaL91jsik0stF+kvYUY19NsBmiaefZ1B/NbhWme7+70jgOmxsiCLzfMV XKKphWjjwAAuMYbLFQFxLbcAH3g3Mn1gfTD+JZItMNK/RRfOe2t+lOrynVrDbZG6YcxH QPFulzsnm/qEpU0MAW9sdNl6RCqTZ/+nYK8QJ0tXfJA5z8VkRTrftoG9A6V9UrBM5npy 19EwLyDH6UJIFbJDW7W3Ci7pyqwZppyfUZD3IMkRHqsC5XyubAvqYDXowWrsKu2xp6qE MA+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679573618; 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=rxdfkNfg9Cqx5PYmumxkm8NMkeCxgHCaWOIO7seRGFc=; b=7I66Lx7e8s4E74fTF0I4x/47OkkXBGcplXjAvZCnBxB+/JlSm8ntBPBNlK8VPfLCMC ygZLeniqV/VMLgKzJNL2oeup9wgoc/cGcgWE1fj/20Deqkib2jnqOKF6jlqsbcVwX8KP 6dCn3KOtIzziEOrbpegfIevTqSjKiIVqK5QkjVwHOMYTI0qD3OsLyWPPe1yrJJwq/WKK 6E546k0aQnWkg22WOjC1/NgY4CHtjn/lYrr/GD5rVf//xP4QqTcm9ri/SLUrEg1R0Vkz pUTsw2Hn6T5QDvxs9VxF7lQbdPI/LCikBKT6kVYcbV13lBhoKjQOjr6bMSF2C+RmwxNX DFig== X-Gm-Message-State: AAQBX9dSltPtu/yedq423FijqS+FVk/U/ECamoU6fpDH4QbuC4nO2ahb SUY62QPJeTk/BpijGg133nXHbf8cbqlPle8DHJEIZeFcnvJJ5s+c X-Received: by 2002:a81:b388:0:b0:541:7237:6e6b with SMTP id r130-20020a81b388000000b0054172376e6bmr1609332ywh.0.1679573618392; Thu, 23 Mar 2023 05:13:38 -0700 (PDT) MIME-Version: 1.0 References: <20230315055355.66733-1-yang.lee@linux.alibaba.com> In-Reply-To: <20230315055355.66733-1-yang.lee@linux.alibaba.com> From: Ulf Hansson Date: Thu, 23 Mar 2023 13:13:02 +0100 Message-ID: Subject: Re: [PATCH -next] mmc: usdhi6rol0: Use devm_platform_get_and_ioremap_resource() To: Yang Li Cc: jesper.nilsson@axis.com, lars.persson@axis.com, linux-arm-kernel@axis.com, 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:54, 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/usdhi6rol0.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/usdhi6rol0.c b/drivers/mmc/host/usdhi6rol0.c > index 99515be6e5e5..2f59917b105e 100644 > --- a/drivers/mmc/host/usdhi6rol0.c > +++ b/drivers/mmc/host/usdhi6rol0.c > @@ -1790,8 +1790,7 @@ static int usdhi6_probe(struct platform_device *pdev) > > host->pins_uhs = pinctrl_lookup_state(host->pinctrl, "state_uhs"); > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - host->base = devm_ioremap_resource(dev, res); > + host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); > if (IS_ERR(host->base)) { > ret = PTR_ERR(host->base); > goto e_free_mmc; > -- > 2.20.1.7.g153144c >