Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1791574pxb; Wed, 20 Oct 2021 11:49:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdsckwIx3uPuqYiu5VMHA22JqZeRVfx8ZWqXxKRL/yeF8TaT3JO1y6VVVioH0VTJe+xLnF X-Received: by 2002:a63:1125:: with SMTP id g37mr734981pgl.403.1634755770004; Wed, 20 Oct 2021 11:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634755769; cv=none; d=google.com; s=arc-20160816; b=NCO9nGeezXWYmu0WRuheoOyywO7loUkXK1NAgltBPT9rfvbQa7UTY5mRCwmToBlUUf As4aZPF6jSoKrR+AMzkO56TKBt8umFD0u2IGHEhGyJ+iHqFNZR/9IBPqg45oxsQuC0bX AraryT0GjG7kxfzYNZUZe0dx50J31YX5WmlgZrneps4YA5w100WhpPcDrjD5yrjJChtC 6btqVyHEdlww1sDNr4Eacxut6SnrSycQnLqeYK+HwnxZ5rZc/+3VgAjY5295dCjmpmwk +Jco9Hnoy9BCXr+MqiUbLzu59NEC4VP3qXmcMG2f+Wb9yyjjhWnA0yElYorRajGkR5L5 ymLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=uIPGep12lqpo6R/2wmBtnpgGiUzu3DLm9OoZK4A3/es=; b=qiPAJPoyE8cwMj3hbuHrLkiw7DV+XnIzS9VbtaAeo4QUVYyYRr5YUS0JfLPZg/RXiH C+LYIKX2XWNhxvKOUPUpclnXcg7Cl2Yst8PpDIptY7nU2TM15qloiom7VKjz04QD+BOb wptRNqOc0zcSomZVfFKtY2w55ZbWUwG/zbxT5SpITZsG7gJoL4Ic5lhSVT+kkdXZzh3D LLD1GqQMCwr/uMutfhv+UpyfNtQmkDEOxGls+fhoCdsofeUXmzS8TJ9iIE8ApHFcUyeg 3WxeabseDu+2FgJNjaAOLvHtw+8z5kiCTZwARpCxvYRnuxt/EosSc7AM4CVNBMQzonce hB/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p+U63rna; dkim=neutral (no key) header.i=@linutronix.de header.b=Pgn1W58l; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si5054680ple.97.2021.10.20.11.49.16; Wed, 20 Oct 2021 11:49:29 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p+U63rna; dkim=neutral (no key) header.i=@linutronix.de header.b=Pgn1W58l; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231490AbhJTStt (ORCPT + 99 others); Wed, 20 Oct 2021 14:49:49 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:54612 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231328AbhJTSta (ORCPT ); Wed, 20 Oct 2021 14:49:30 -0400 Date: Wed, 20 Oct 2021 18:47:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1634755635; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uIPGep12lqpo6R/2wmBtnpgGiUzu3DLm9OoZK4A3/es=; b=p+U63rnaHZfdWziUDbceD9Nhb1Z68TYfA7oylcLnubu3O1a9tB/Owy4vqh9lCUa/NeiaUC ZDwQQyy36kE5PjDE5e6f9qvwvawgrmWxSu4S2wuZwpaH1wxiTy9gi90nKQUbC93IqCfMSs ryoeTFsxLeGMZs/PQ52nCFTFOnwpO0ZDfcw8V4n63QVPSNvvR7EjaYJKq49H02/8TI3MFw KbxAU/KB1PiMvS/rw7jyHL54Aet8WxUKbTh1x04RbWwFUDK1mxtKmKKqxtxgMpuACpsgG5 EjCgpHzlS4BWA/YvroTGpCngr6FRGfPWyqYcIYdMr5O06aFcyjpp/qfvdVZ+3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1634755635; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uIPGep12lqpo6R/2wmBtnpgGiUzu3DLm9OoZK4A3/es=; b=Pgn1W58lGibi5Ti4w5N0d++hgYKF/4lEjXPTKlvwurRBv6z49eWc+W4lIK97sHGkdODDbz nrziireSemPYO/Bg== From: "irqchip-bot for Cai Huoqing" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/irq-mvebu-pic: Make use of the helper function devm_platform_ioremap_resource() Cc: Cai Huoqing , Andrew Lunn , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20210908105701.1678-1-caihuoqing@baidu.com> References: <20210908105701.1678-1-caihuoqing@baidu.com> MIME-Version: 1.0 Message-ID: <163475563474.25758.12905440311379570952.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: bacdbd710de553c9c998235231139f0921a5750c Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/bacdbd710de553c9c998235231139f0921a5750c Author: Cai Huoqing AuthorDate: Wed, 08 Sep 2021 18:57:00 +08:00 Committer: Marc Zyngier CommitterDate: Tue, 19 Oct 2021 11:22:59 +01:00 irqchip/irq-mvebu-pic: Make use of the helper function devm_platform_ioremap_resource() Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing Reviewed-by: Andrew Lunn Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20210908105701.1678-1-caihuoqing@baidu.com --- 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 dc1cee4..870f986 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);