Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5496025rwl; Tue, 21 Mar 2023 20:35:25 -0700 (PDT) X-Google-Smtp-Source: AK7set8SpkKoUciTfwqYeTY68tNYntNZfdW00asf37zMdHerexEwmv3IIdSIo/SViInC9yqcUQxw X-Received: by 2002:a17:902:f98b:b0:19f:30be:ea0d with SMTP id ky11-20020a170902f98b00b0019f30beea0dmr1214549plb.62.1679456125252; Tue, 21 Mar 2023 20:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679456125; cv=none; d=google.com; s=arc-20160816; b=z2tno+Zrq+/Zg1iqez9VVDn+viV//13U4/d8IQd1kYiKXoYeWkRPgMO8+YMNmc+hYf WOVV5BrK77JmeIQxAPYf1B1s7NSpyLrfSsso5SbiDu3yiI/LqMZBum6+yUwDEQjwjaM0 +57JguzvYuZxiBMqiH1Cp95e+cSS2h7JO0sxYFoyDTLUsjZlrgzVvf/gyfP/gH2susca lrnfu/CFLdALRxZWqSfWnimN+awpPZEyqMQ919yTfx2MJJ6OM2tqoGrP8sCJtV5kpSw1 IpHaOQ1wZbUBrHedXBs1Xmb7T87RUMKR/nsyJYuf+JzCTflHa4T4pRycBKpcBUybnQxr xRVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=t7vBD3x2KZVoqmLY8hJa9wOj6Em9RG3220vgMhHDw8k=; b=c0JJEcJ7qYMzCXEbz7xUwkjtvfla/l+geyIqLzIofIuCx7sZeewTIx+kXEABF/46To AtDInwjbgZQlx8aSQI8Ez6PQpcuAdhRzeaIdZJPYWwNAYdGjTJ2VHGRpEKYIjwwQhuyQ diCX6Bp00+3o5ktgCHOSLS2YYiv7fYtfh3zTxxwLOpiyt1hpmmTVCnqvZuxPdE1w5uSD mR0Q0Xhqv1pUL90Rz6VxedxbhPhBQDo7m8kXcRLUSwGisJ4p145urxtiy8oHILNcFeIW VeI+X4jxcYV8Y1RrqUAbvLPZT1DDO5AMDi6Xd9+bUQc1qCYtQo3f/oEBQssTxcySeRR9 25iw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d22-20020a170902729600b001a04b5ad759si13976008pll.616.2023.03.21.20.35.12; Tue, 21 Mar 2023 20:35:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbjCVDcL (ORCPT + 99 others); Tue, 21 Mar 2023 23:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjCVDcJ (ORCPT ); Tue, 21 Mar 2023 23:32:09 -0400 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F068CBDEB; Tue, 21 Mar 2023 20:32:08 -0700 (PDT) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4PhDYM2KdJz4xVnK; Wed, 22 Mar 2023 11:32:07 +0800 (CST) Received: from xaxapp03.zte.com.cn ([10.88.97.17]) by mse-fl2.zte.com.cn with SMTP id 32M3VuXx024767; Wed, 22 Mar 2023 11:31:56 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Wed, 22 Mar 2023 11:31:58 +0800 (CST) Date: Wed, 22 Mar 2023 11:31:58 +0800 (CST) X-Zmail-TransId: 2afa641a76aeffffffffaa4-e4a29 X-Mailer: Zmail v1.0 Message-ID: <202303221131581039486@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , Subject: =?UTF-8?B?W1BBVENIXSBydGM6IHN1bnBsdXM6IHVzZSBkZXZtX3BsYXRmb3JtX2lvcmVtYXBfcmVzb3VyY2VfYnluYW1lKCk=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 32M3VuXx024767 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 641A76B7.000/4PhDYM2KdJz4xVnK X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY 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 From: Ye Xingchen Convert platform_get_resource_byname(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource_byname(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- drivers/rtc/rtc-sunplus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-sunplus.c b/drivers/rtc/rtc-sunplus.c index 44b8083603c2..f33dc301f301 100644 --- a/drivers/rtc/rtc-sunplus.c +++ b/drivers/rtc/rtc-sunplus.c @@ -235,8 +235,7 @@ static int sp_rtc_probe(struct platform_device *plat_dev) if (!sp_rtc) return -ENOMEM; - sp_rtc->res = platform_get_resource_byname(plat_dev, IORESOURCE_MEM, RTC_REG_NAME); - sp_rtc->reg_base = devm_ioremap_resource(&plat_dev->dev, sp_rtc->res); + sp_rtc->reg_base = devm_platform_ioremap_resource_byname(plat_dev, RTC_REG_NAME); if (IS_ERR(sp_rtc->reg_base)) return dev_err_probe(&plat_dev->dev, PTR_ERR(sp_rtc->reg_base), "%s devm_ioremap_resource fail\n", RTC_REG_NAME); -- 2.25.1