Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3517283pxb; Tue, 7 Sep 2021 01:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaXv4avODJuwaeAxNaY4rxJitEGO35HKknkROH47XnTN7JC7s70xAB8WBPOrvft6nEak+a X-Received: by 2002:a17:906:12d8:: with SMTP id l24mr16953802ejb.126.1631001809157; Tue, 07 Sep 2021 01:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631001809; cv=none; d=google.com; s=arc-20160816; b=foenv3WRW4KiH1b0/68553p/3hh76xeNtbbdHA6E6mcNUvDIeJHH/Cqn0IhVbNrWnN si0fjLPKalXNuVtcr6xWOZmASVS0XRgUwL2xJygrIW68Mvqf5TwHfRAG2vM7UansfQIN b8oFvcwXQOf1/TxAXfS8bfSSUAqaQvU0uL5Ftmpq1pFBhz/4aDiGw8k5N0bSCe4L/baa fCWX4gaU3y59VElzi7IM8y44rTPcFAjgBFYPJUHUvPpkFMkE+gfn+IvtlCz8AQf64WsM gBRFVJfNT6Z8kQBtm2waFSBHUdgI+Tt1E8EAUibS0bpVRziyX44+ZWpF3RthluqobHyn vJTA== 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=SYK6vUK6WrZegS8zVJ1/j3HdXM9iA1XSXwbsyqXQCoo=; b=h/g95h4VGB7G8AWd1WT0gF6YBO/blcfEn4icDBnDEb7yM7THO4izpT8AEP1WQtJwGI ADI9ywolFepiCYLCz3QM61cNRW6E26+9wyey16gA9Rdp+OhfS5KMZjbJawRHIpW5EOzA kNV5nXSsbPBYygsBPob2Y6OVBWEgKBrCWMr3z1sLTaYsnW4kd0Y/Hr5cxPNeTX5++Klv vR4GmAGa8PYUqnuspPKGeyEIRZJXWnU6slYsgmK6aTjNCxH6ThhvWs6+FgTPFBS2UGRG Q8dgEYKKLjIZp6qTvKzPV7bUF0BCbPF8Obc0ecm+usiBCqQ/idR6PAW1jA/A33Y6KQXu X34Q== 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 i5si9931114ejd.224.2021.09.07.01.03.05; Tue, 07 Sep 2021 01:03: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; 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 S239550AbhIGHm5 (ORCPT + 99 others); Tue, 7 Sep 2021 03:42:57 -0400 Received: from mx20.baidu.com ([111.202.115.85]:43846 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239680AbhIGHmj (ORCPT ); Tue, 7 Sep 2021 03:42:39 -0400 Received: from BC-Mail-Ex03.internal.baidu.com (unknown [172.31.51.43]) by Forcepoint Email with ESMTPS id 72C195C032E891CFF8AE; Tue, 7 Sep 2021 15:41:31 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex03.internal.baidu.com (172.31.51.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Tue, 7 Sep 2021 15:41:31 +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; Tue, 7 Sep 2021 15:41:30 +0800 From: Cai Huoqing To: CC: Jassi Brar , Subject: [PATCH] mailbox: omap: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 15:41:24 +0800 Message-ID: <20210907074125.2298-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-Ex09.internal.baidu.com (10.127.64.32) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) 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/mailbox/omap-mailbox.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index 7295e3835e30..58f3d569f095 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c @@ -699,7 +699,6 @@ static struct mbox_chan *omap_mbox_of_xlate(struct mbox_controller *controller, static int omap_mbox_probe(struct platform_device *pdev) { - struct resource *mem; int ret; struct mbox_chan *chnls; struct omap_mbox **list, *mbox, *mboxblk; @@ -776,8 +775,7 @@ static int omap_mbox_probe(struct platform_device *pdev) if (!mdev) return -ENOMEM; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mdev->mbox_base = devm_ioremap_resource(&pdev->dev, mem); + mdev->mbox_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mdev->mbox_base)) return PTR_ERR(mdev->mbox_base); -- 2.25.1