Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp401277pxb; Wed, 8 Sep 2021 03:58:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkd8HKS5sakII7eyNHz8lCKVC3yjkDFdCJjE7SFoZ1B7FYInKt/wc+FbkEw14q4LV2h02E X-Received: by 2002:a05:6638:5aa:: with SMTP id b10mr3164736jar.76.1631098710259; Wed, 08 Sep 2021 03:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631098710; cv=none; d=google.com; s=arc-20160816; b=M8JVg07qHBlr0XMy05cGbokV7HIMHLqBS1IblzRyULksR5DjKF7IhrJE1mpFsWgDWk +kGxrxoFFc/gAOGm4kYombpfuxGaDQXtkCeZ0m55Li+BHcnm0cNDlUXdZcj1U/xaQqs9 Hde1TkZ+c4P7ZFMAiIjr/5zO1BCjg2HaxofVq1aaaRKww3VeGMI8DZr2n1O8ftZD9U0g Cc/zh/euHu9l8eF1YBxPmGYezTn80wPnRjpvLJ2TL6mhc5BPZzDwhnHfobCieAcuyskd S2W+Hr4mei7E9jP5LAcLfhrmFgyseeY7boHj//+mZE/YlVWkDD5EeXDEbZy2kLugKtQR M0ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=mwRUHvD1iJOpTyJ5o0Jg8tXcUsRCy1FUevuZH8v4tDg=; b=U90etcwVkmXFlOkaMfBqE7jrWwJT4ahXLUHHtYD3QE6MjmmkML5UUVhV6EGchv6JJf Gw/IPoiumwhMW65c9Jywn5I44zpQZy9wFZOBaqGNe60Lf+lw/Wuqm1VVZRsURl5kWmJC OFbvR1lX3jPNMzWCFtES2wPmezCu/GNvaYvBeQJISXCycjmJKbNtX8kAhp/N+70E1xTe LF0sUnTjSCsd3V6FMg3j7wc/wszw6ICSZKJ5IRuS5csKxFhldi39IiAqfhHXqbbRWEEX 2ShsBtJidmfDQKkPW3ng8llQf3wOfOQ6z6edmXlLW0/UharRfqwFH7jcLKUbqjNJxaAU Z/xA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si1999853ilu.13.2021.09.08.03.58.18; Wed, 08 Sep 2021 03:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349129AbhIHK6V (ORCPT + 99 others); Wed, 8 Sep 2021 06:58:21 -0400 Received: from mx21.baidu.com ([220.181.3.85]:40534 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1349130AbhIHK6Q (ORCPT ); Wed, 8 Sep 2021 06:58:16 -0400 Received: from BJHW-Mail-Ex08.internal.baidu.com (unknown [10.127.64.18]) by Forcepoint Email with ESMTPS id 4EF306A915FDF69C2537; Wed, 8 Sep 2021 18:57:07 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex08.internal.baidu.com (10.127.64.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 8 Sep 2021 18:57:07 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 8 Sep 2021 18:57:06 +0800 From: Cai Huoqing To: CC: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , "Marc Zyngier" , , Subject: [PATCH] irqchip/irq-mvebu-pic: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 18:57:00 +0800 Message-ID: <20210908105701.1678-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex15.internal.baidu.com (10.127.64.38) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex08_2021-09-08 18:57:07:331 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/irqchip/irq-mvebu-pic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-pic.c b/drivers/irqchip/irq-mvebu-pic.c index dc1cee4b0fe1..870f9866b8da 100644 --- a/drivers/irqchip/irq-mvebu-pic.c +++ b/drivers/irqchip/irq-mvebu-pic.c @@ -121,14 +121,12 @@ static int mvebu_pic_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; struct mvebu_pic *pic; struct irq_chip *irq_chip; - struct resource *res; pic = devm_kzalloc(&pdev->dev, sizeof(struct mvebu_pic), GFP_KERNEL); if (!pic) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pic->base = devm_ioremap_resource(&pdev->dev, res); + pic->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pic->base)) return PTR_ERR(pic->base); -- 2.25.1