Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1860362rwb; Fri, 19 Aug 2022 10:35:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JOJ/u7hERhoXxnYlzj1QLLAQZpnFTVB41YVexWr6L2gEJdbfpLBl/DIGr5+DAIt3aV8ED X-Received: by 2002:a17:90b:1bc6:b0:1f5:313a:de4b with SMTP id oa6-20020a17090b1bc600b001f5313ade4bmr15256574pjb.4.1660930508286; Fri, 19 Aug 2022 10:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930508; cv=none; d=google.com; s=arc-20160816; b=BYmXY7DthRwM5Js/v95D5mBaJ7r9iXVTtPk6dnm06JSwvtwdWZdwqAFKvf62OoKKXL QxlvCLfg83/yXsKYb4DYhqlM1fTTZEvRmNwYiVXTC7sygekh/W+kRu9iEcsZLKH150h3 V/q+BgkvmA4MmWhdcuAxLeYNYZ/fP5GCWe8XMfYcc5EwJg9hdVA6NHqU04d2ffBbgYQs pSn/U/jVUBPcftXethZA77SvPm72TgdjWJSrDe9LGMqD02bgLBDXLESBUpMw+5RspQ3f ScjciXa6muAWgNyhwV9EmpbK1DctnmRWT322IrWGtENQgeHRVys1ehxpJu+6iKlKP+yU T9GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=luz+ZSQ/PrRKPDOqTHdru7iIvXVbei58N+tapTUtYOU=; b=YgvTYI8NWYouGS3J5FarIoCFyH5H2QmwN8s86hpgjB/HWz68+u9oucyO/Qa4+sptYv pVrsgYuMlN2PCZMVRNl8MfaC0cAtpiHE8LaZ5nAg+lGrzfifF2V97EazKDUfcWlAGgcj s2O+eYbfAn2GLlHT/+plxaLem5xpCoM1auWw1OBcXiZz/p/pdBPDOvYNyoL05SNeIcfl ASBToVHThMJwowm3x5Kl/iy1QHRqrXjvh/HtKr4QqjXucILrmoOOCG6ShyJP+MMDG4yk A49ZLWbXdyrykJa+5dYQMIX0TE6WFMwOUpCvo4Ke3tNXDeOiTq1i0GD28Op4uT0i+Yrc 9EOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pfUtZWaE; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a632c08000000b0041e27a7848fsi4396085pgs.754.2022.08.19.10.34.57; Fri, 19 Aug 2022 10:35:08 -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=@linuxfoundation.org header.s=korg header.b=pfUtZWaE; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351569AbiHSQIf (ORCPT + 99 others); Fri, 19 Aug 2022 12:08:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351530AbiHSQF6 (ORCPT ); Fri, 19 Aug 2022 12:05:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15BA010446A; Fri, 19 Aug 2022 08:55:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 93D4E615E9; Fri, 19 Aug 2022 15:54:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0B60C433D6; Fri, 19 Aug 2022 15:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924488; bh=RIwl/gZEn6BfV0/4TL+k02CQuHR+qY+o/OUWzQg+4JY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pfUtZWaENqq44izQH8F6LK30bjJhQLjvmbsBaz14xiVYWbrL77XWxZ5vsDBhNQcWk Bs9DZucpK24hDeXzM9OvyxZKoI7H9/AhqE1VpBQK1bLjUozO3/n1MU3AzoHi6ujUp0 VcrfTHihuimjqzeV6akjYv3jHSaUioleTY8Jy/hk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yangtao Li , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Thierry Reding , Sasha Levin Subject: [PATCH 5.10 156/545] pwm: lpc18xx-sct: Convert to devm_platform_ioremap_resource() Date: Fri, 19 Aug 2022 17:38:46 +0200 Message-Id: <20220819153836.324676736@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Yangtao Li [ Upstream commit 74ec20a4e6a064ac2cdfb577c115cb948b307f0f ] Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Uwe Kleine-König Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/pwm/pwm-lpc18xx-sct.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-lpc18xx-sct.c b/drivers/pwm/pwm-lpc18xx-sct.c index 9b15b6a79082..f32a9e0692ad 100644 --- a/drivers/pwm/pwm-lpc18xx-sct.c +++ b/drivers/pwm/pwm-lpc18xx-sct.c @@ -325,7 +325,6 @@ static int lpc18xx_pwm_probe(struct platform_device *pdev) { struct lpc18xx_pwm_chip *lpc18xx_pwm; struct pwm_device *pwm; - struct resource *res; int ret, i; u64 val; @@ -336,8 +335,7 @@ static int lpc18xx_pwm_probe(struct platform_device *pdev) lpc18xx_pwm->dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - lpc18xx_pwm->base = devm_ioremap_resource(&pdev->dev, res); + lpc18xx_pwm->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(lpc18xx_pwm->base)) return PTR_ERR(lpc18xx_pwm->base); -- 2.35.1