Message ID | 20230704133726.28861-3-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1233351vqx; Tue, 4 Jul 2023 06:46:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcoXB8fviNgLhlpz1HcnzSFD6T2WX3X0UYIUnajzQ6jr8AK3MrSOPzU6IEDvD4H9palJ33 X-Received: by 2002:a17:90b:80b:b0:263:5333:56a8 with SMTP id bk11-20020a17090b080b00b00263533356a8mr8042854pjb.21.1688478369280; Tue, 04 Jul 2023 06:46:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688478369; cv=pass; d=google.com; s=arc-20160816; b=tz6yLJeeFE4CAL6Iw9vpKeKMIh4Tf+NEai62HgR/y8hwJfJGy8/1TFfTgF6Pc5khpX Go6Ht4Kl3KwfTdl8CU9/sS/wQv6aCe8JRcCdJXtBVQEst963JMSdQPN3yGq9NYrlvUY+ z2/hewKX01DIx4ZKomXJ6oPEXAn6s8gClEZFmvQHVO0sgBUydBNeR8qSg7NO9DmMdF+2 uePcd8CXb12/ksetTS5kTZhF3BiIQfNNcvX2yba7B0CL26DMkfCgahRWzbMFRztbbIwv XgqwR4lrypBppqFdUlEM7YrSzVMGMSHuJCaY7vaz/9vC+neSpjqXim2REC9696K9zsc+ TdTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DWNwGHOybxnG2KaL+sDWfXBLEdb+fyWZFnZXLh04aPQ=; fh=yi5H8jOn2nS3ES9MXWAZ4dfq12flnrqRaG8wJzLjeGY=; b=dIRyJWFIYmwOZ/D5XNMx7pQs5Zx3VEj0ONDyQ46aw7bb4e/7clw+n/JDECsDXYp4Ur SvAs8RMLTsPl1xWZMI6/wrPbPFsNfN3PTXxohjVgGfToZGjd8pXePtu5+Fx/zSdsdDLP djLKi/EIxYMKvQZYX5XLAAI+xqgCEg4rk2h7FvDx3RrHU/+bcmuDX9TCnlViOv6DsVzY t+66+J2lAkLkZL4inh01RWVLHVgCRrCwYGnNCPB8LSouMYEktdzzD/m8FD+Lw/uCYK6A OoHnPu9ji5ucq6CX2ICoGBiBuENNHzihQebFSZt3XmzZIRy65Ttwdy+UCCRRIImeArYQ f0rA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="qAcBoI/3"; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f25-20020a631019000000b0053fe392ca3esi19747166pgl.509.2023.07.04.06.45.55; Tue, 04 Jul 2023 06:46:09 -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=@vivo.com header.s=selector2 header.b="qAcBoI/3"; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231488AbjGDNh7 (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 09:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231610AbjGDNhx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 09:37:53 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2122.outbound.protection.outlook.com [40.107.255.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 036C810DA for <linux-kernel@vger.kernel.org>; Tue, 4 Jul 2023 06:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YugR7qg+47CKkUzT42JQXyU1w/C6D1rI1xXjfCEmlhJHGEXM4a1c4YY4ixQIIk+EnW3JQzdGScvnSYJ3V1wc4jCrEzfkQo5Ki6qIe5Vc/jgaVk6IboUh2QBVcmDPx1ulFRGIeHXbMqmk7c6U4c1DepEyRISNX7ACyJrL7iHSoo3+suyA19f0gFONKYd044gZpEX/1wU80RvUk45SHLxMP389NI93Arr06jAwWuwh2ASJ0U1M5mikd2ohIdeVuJ+VYnvhBPrvGGz+1scdEv0UAmxT8BAZRyrC2y9u5MLvVhINEOIsHNU8+9app1LEH9jlNVbyoJOpDPpkbW/u7Pmnkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DWNwGHOybxnG2KaL+sDWfXBLEdb+fyWZFnZXLh04aPQ=; b=L4eSWdTagWjAXN2ix2J5ei8w/pjEh9OgbtwX1xRAF60z7ZzsHFwqpy6kYWV74ZS9BD2TVuOY+sxYInoKaoJIq+lkTxZECzh/WeC2lIokjMrkwYr4Ir5Wf/xLHiA22fcZO7426RcmZHUB63N1ALoX2Ji9ItqYiuA8hl4ufP2WfqlB5BKR6i8KWKnKtZZxRHkpvyZWo03xiNBzoqfm8VWM24MKzplxZLsUSYDAAcQeZW5hebeTTrMp1Gys2ZKFyhMhXUHCXxwb8E8p4sUBb4ATH1lo6FBaBUp9/PrDjOwQmdFOz9FexdUMKcbFZrVjYNa75sQlA1l5oyk0HF++ywFKjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DWNwGHOybxnG2KaL+sDWfXBLEdb+fyWZFnZXLh04aPQ=; b=qAcBoI/3r9MJqCcIegmsbIlf54cYpEVPuREJn0Vnzz7ZHFNNW/klFyK/fGYbQkxwP9vPVBRBESfY1QXPngtvxmPureD0vs2LDphleMfiOUl6YVolGon9HDVpo2RyfuGKxbg/8w/d0ynklN9m682/DJzbReeXm7IbSnl1hkh4SBb+ZG7btU87dADkxZIJtr2gknVpaHonxFeOB6GNUifOGWbxCKMsi+o/F7Hm3VJjAfrBk3dvg6CXoRs8Alc8jMOn1rjf3zkKo090Nn6t7f4uJ3sH5N3PkCF45C5JtLB30LozaaVb4xhjui4l4lcX9cGoESBSP5VT8jYwS2SoUJXa5w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TY0PR06MB5708.apcprd06.prod.outlook.com (2603:1096:400:270::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 13:37:38 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6544.024; Tue, 4 Jul 2023 13:37:38 +0000 From: Yangtao Li <frank.li@vivo.com> To: Jassi Brar <jassisinghbrar@gmail.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] mailbox: mailbox-test: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 21:37:24 +0800 Message-Id: <20230704133726.28861-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704133726.28861-1-frank.li@vivo.com> References: <20230704133726.28861-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0034.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5708:EE_ X-MS-Office365-Filtering-Correlation-Id: f6dd4d00-a779-4502-8cd9-08db7c93d562 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2wketFsCnOrYjCMWDDPqRI+85v5b75CSU1rcWSEKrxH712cvkTqkX6pYDpw4NrWw02eCTPzz1s5EfoIBKSeV5ZdB3Yuw0u7Oppmi1wQXCWennTSJR9XWzhARb6YdHMBnQ4ankTG6uohvom4q2poaeDpZo5bHTe5cmDwM6pO8pn1mX7LybeA3zlaVVHkVVylMDgCmEUy/pTYgYxuON6pPUuWtLcU/pvpKpoQABZ3q0w5ZFBlmw2A1BR+LE5j2NRLxkDZ379i4MOyXcldZlYVOeuuIRii+HZdAO4XMR5soOy6zoGucr6s4VHpGL5phVvYcvqiTr2fb9pIUrcGuxHuFJKs7e+LIs9XiEHzkjUIr+9cN2BGKhiZBzuU2U1Xf8FyD2c97YW21QnIiutG7rVxyc9qfE/62puJLmaIwv8IAHMwtd+ycpyZyOQfzTtpev8H5yBy9QZU7r0G9xua4VxeR/GdRXG8Yz2Jw2+9VuWpE7n0Aevi3gDwmx3/mgFng5sB1VCoZnscxqfWUwNlwqUsSqD2jrTFGqLyZS0sisFdlCI/C/XUCgBvY4quwop6DAiYFceDnzRURAXg/EV7mt59Efsi7JiEeMMDSL9C6m6388QhOeDn2HHv8Y4PHTTM0eToq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199021)(4326008)(316002)(66946007)(66556008)(86362001)(186003)(6916009)(26005)(6512007)(66476007)(1076003)(6506007)(83380400001)(2616005)(2906002)(6486002)(38100700002)(6666004)(15650500001)(52116002)(38350700002)(5660300002)(478600001)(8676002)(8936002)(41300700001)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 49UHEbcmL7dkKjGRc4hT7kpWOywGP/AwJ8Q9T/YJ6wcUUngLQicmIXNtuqvLi9a5oLQIjfk2ltSgRPtulBE6O6jvGedkzNs8Zt0pKQkRDiGJKcjFDX1KgfTI8TwNxCzDUegM9Ji3P2U2Ev73SV/AQzv5jklFK21z7OkuLZnQEfRRD7KvWhw78zZUAnE426RsaYGNmjkL7aL+9gz8jcJhQt6ILbdE5ehF17jnxe5JROmpwgTUdezzgm1KVhcG7AB0XE/IzCzEKrlGmzmthODXCaziGvk01A8fD4FfjUHrWS6dZA8q6qGmc1umBti91DgQkuPaewhM1AswWhurDN4TPkiAeTZZSGaRL6hQWW7r0pnWvkgzqG858AXGMTLyKOz+ry5VriV6Ek3uTJee2rxh7O7BAMji3H6JQpIok+d9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AwTY0Ph9K4mdmBBwih6UaaMKMiqc45CSSpgHPuhUG8qWacwuhS22ETXq4Bm06Ov5HYCVpIOGKh9P4w0UmHxtw4L X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f6dd4d00-a779-4502-8cd9-08db7c93d562 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 13:37:38.6513 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U39WJp/wniqejM3v0OSztpRADl0rM+hn/54wmBrFfgg0hIKRjxYFZpEdlCuCc8lg22JbGgznRxPabGKKHiA8JA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5708 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770497894039610786?= X-GMAIL-MSGID: =?utf-8?q?1770497894039610786?= |
Series |
[1/5] mailbox: bcm-ferxrm-mailbox: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 4, 2023, 1:37 p.m. UTC
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/mailbox/mailbox-test.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-test.c index fc6a12a51b40..91b68cb884cd 100644 --- a/drivers/mailbox/mailbox-test.c +++ b/drivers/mailbox/mailbox-test.c @@ -367,8 +367,7 @@ static int mbox_test_probe(struct platform_device *pdev) return -ENOMEM; /* It's okay for MMIO to be NULL */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tdev->tx_mmio = devm_ioremap_resource(&pdev->dev, res); + tdev->tx_mmio = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (PTR_ERR(tdev->tx_mmio) == -EBUSY) { /* if reserved area in SRAM, try just ioremap */ size = resource_size(res); @@ -378,8 +377,7 @@ static int mbox_test_probe(struct platform_device *pdev) } /* If specified, second reg entry is Rx MMIO */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - tdev->rx_mmio = devm_ioremap_resource(&pdev->dev, res); + tdev->rx_mmio = devm_platform_get_and_ioremap_resource(pdev, 1, &res); if (PTR_ERR(tdev->rx_mmio) == -EBUSY) { size = resource_size(res); tdev->rx_mmio = devm_ioremap(&pdev->dev, res->start, size);