Message ID | 20230706101100.75654-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 v5csp2453939vqx; Thu, 6 Jul 2023 03:27:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHKetZR6Bq+kXIxNHFkrBDugg2sCkUlqh5L2Pe2cz2wXkO3ve+z1qsUV+l/ZiW7lrQNEnMP X-Received: by 2002:a05:6358:33a1:b0:134:c984:ab74 with SMTP id i33-20020a05635833a100b00134c984ab74mr1624006rwd.9.1688639237237; Thu, 06 Jul 2023 03:27:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639237; cv=pass; d=google.com; s=arc-20160816; b=KQTO52r/F2c6Si+I6srM2aF9SWHbdM2Fix8HIGaoNsI0d/okAs10+SVWV3mogKUTOn B8s9/g1OUNGUWVG2vn0YPbIUv6f6ftsSZqHurT70oeCZRK7i1spCDG6ZGrKI7F9VmS/S G3jVvJBhiiC75Mp4RlNAG9p4Ej1P8JE1vAP0NZLSGigEJVLlAfbFTzB24n062MyFZWER GBX4vX+3v+0MQyyg7A9EAPG94202qghwCuB8DRf8XLlbRrEAicEFZhEID0oaCsZYt3qs uBKhu8TPYRS5TTKmy+ll+bI2hz5vUFjFMOq9pRPNp3zsKFAjgkKr2rGzrcu7BsTgcuOu Fr5A== 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=oMO4tZFG2Hb3/XjMbRj4KhvGd4TY+UTX9//pswTugWI=; fh=qT1IeUN2DSf0XsMZhLUbcvGUECtFprkgDHAU+OykdgQ=; b=mjw0UH/Ul64cykzFiCSYkSvD+M38ZaDG3zoEOoF6r3wwVgl+37/u10S3eoVJCH/yw/ orVR5mYhXPK7/vSav2dDSOSxm79SDu/toR4l8yVSL70Yvfn+vhLxfjlXi++DvPTsYGU6 IUYtLEqtPiPAjdkSf4Rk48gmBJWc6YfQ1rcR+yla3+7wByQTt+Mxu0KuBaWXZB8q6PSv 2vXnu5IGj0NzbjF+hlKNEnaGw2F48iu6dNndSEAP+MMvpQy5cr9zcrbEpbYK8UCjnSli Ia6aVdpLxSmN1op4M82eKylgt/IG4Dk30NzjnSXyK2vBUIw+D+dB1QL+4aKv3Fw6Sf8I 2kJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=XaurrWul; 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 144-20020a630096000000b0054fdc622556si1198693pga.558.2023.07.06.03.27.04; Thu, 06 Jul 2023 03:27:17 -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=XaurrWul; 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 S232218AbjGFKL0 (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 06:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjGFKLS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 06:11:18 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2106.outbound.protection.outlook.com [40.107.215.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00DAE10EC; Thu, 6 Jul 2023 03:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZXESrQoT3eGBnwQVRC9TUfQqijKslI9vCxyH/kApyq2HGuz6D2qrlBgMXdmFgim2nl3XbzhBdHkpaF37PRAe7OK3lx0xcc7eznCgvbaY3GKAglDbXw83oDuhFwm3f7RP8bucVWoexIqvNL0g0HAHKLa6c8av3tCd2dMSwCQXIOSHnYqu77YvBVcRr78wZ7GNRr4U04AKla+idT3hvE3xzbwIKj+7s3/7GK95S9BFSCGP7oqodRORfN0n8UBc2OmX3cR21t9jbxDgbtxi7mh0tsnXNANVN2+iQYfv61sAOCB3YetOitQj4BFyTHoGxrbo8f2O2CzxsEPUjZnI8cV5rg== 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=oMO4tZFG2Hb3/XjMbRj4KhvGd4TY+UTX9//pswTugWI=; b=LjT2iMXER920x52JqozzrPj90Te7TnoHCGl/p25MwoXddGVLQpx7pVj7bFwvB2SBLCYwdePIYoH1oxd3EI3wI5rMLt1Aw+XOhCbUNW4nFK/BSyaV2M6ptZ6m5ghwwy+aXk0dgzjHrgKcO8+GqBwZR+9DIYkgnbUEsNqJn0J4/gZYh/HxIdVgpUTaM4eavY7XJ8QyiPCjUpCiKn35TvIRLvsc0XUrhpE5qkMlpqDlCqRi7V4wMKY9Ut7KZFgWKBetDQX7zw6vfOtED8Vf6DxmZqrn5W+kHSNW9QH6RvorROJK4z8JOpzyjFX2F9KzNBOyOOA5iwayOwx0wY+uO/ihLQ== 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=oMO4tZFG2Hb3/XjMbRj4KhvGd4TY+UTX9//pswTugWI=; b=XaurrWulzCkn2rxlteHBSIL7gKoE7JEi53dvcj9kxKLeCPfrqvaozUqablHsBOxeFLgDyS4YgSbvX5kDlAQq4tm9r0YKp3DOCwTbVDxUmNtLYHpTNtVemkm11NF/XApKFAudo5W+wvFUp1GDGgrW9kX3qG+e/cRQTQ0MUHj4IZLfgv/mintV5pUWuEUTKuOobQuZrrrpCwL0rewzvYUTGr7KPURrnj/K9o1QxWHAAL8z/EEwRB+OoxOHoyCaUuKGRwFvc2LbrS1gwvK4Mn+hjoffE+47G1HREXVhu294a+5raQQ/I2Sd7OPDjCNInB8u6J2yp37qoOxli7SHig6kjQ== 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 KL1PR06MB6447.apcprd06.prod.outlook.com (2603:1096:820:ef::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 10:11:14 +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.6565.016; Thu, 6 Jul 2023 10:11:14 +0000 From: Yangtao Li <frank.li@vivo.com> To: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/11] media: marvell: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:51 +0800 Message-Id: <20230706101100.75654-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706101100.75654-1-frank.li@vivo.com> References: <20230706101100.75654-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0093.apcprd02.prod.outlook.com (2603:1096:4:90::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR06MB6447:EE_ X-MS-Office365-Filtering-Correlation-Id: 48ad73be-8068-4782-78eb-08db7e09547a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q5S9GnW4KGlGAYw47nnVHX3YL0Uu4pq7sUm2WwjlwzunPBQcNRVYwyHBoJRTafopOML2wymMcXwJuf5WkXqZzcdLVDZZSRdZANew33gxkXPrvL0GG/UoMnHeFwhE9gWEsemUeU70itDeEHczzIZ61JnH8E8RZQi6afWVvKDDTnkM3W2YSlTw+y8ZcvEG0MdqFoVRySxvaQ2yLjZCf2Jn1LRR/qgYb609PK5AwsD7igunE3tESvk/iTYRXUhOCIZ4kOWDdScYdaSt27IK7GYQo0rJiIPMRfTggYH4zqtjt/3A8vkGLFj9b14WpKsVa2PWybvzSUguNLdaaiPBdfj/7uPdkHi44DFpE7fp/OCATaZjBTIUhFbNCFjJoalRW6+pZepP5VTgBORe68qLGI73THGODbRgHF8dY/MZ1xxhbYppWjLtfGRUKh+1L/MgEoXii9dU2oqUNNdWH87rnDL/JpWuFYL9okvCoQMq+j/duEauk780N5K32qXvcKNF/eYq9UBsaFr5i2Px7ZxtLiv/GnOfP4GqexZZOJ8FqcdY/T2MA4RuCEEIvet9svbCF4XQF2ZI5DECNVlWYBy90qjl+OaBp0B9KqgiuV+nsWp1d5Hf4+zHFjul5E+bCUSvnKeI 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)(366004)(136003)(376002)(39860400002)(396003)(451199021)(8676002)(8936002)(86362001)(2616005)(83380400001)(38100700002)(38350700002)(316002)(41300700001)(66946007)(4326008)(6916009)(66556008)(66476007)(36756003)(52116002)(4744005)(6512007)(26005)(6506007)(186003)(1076003)(6486002)(478600001)(6666004)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VGsNvaQmo0qsWvBp9GUVYtUT/Wt1hNwf9CCFQk/kanMHx1jOmy38L6ceDPH5IZsFKS3S6OEHMQ3MndCjtHC2auFmyRKg6oVyTYjN89xbM7tYlr6tDuLwg1K9RW8Sp8AeQZFapBKvsYbVKc7ZaBM4+AbSHlOyYwMvaDFil/y3Zs02KLqF9MpK2eomlEufyympDUOobzW8K3Ay4ugtr4g2k3eNHHJaAyqiBjiJKg9K7pCoefAN5lv/uN33gAnNPm7Ac8Rbr8lYLgNer2gY3baNFC0w6HkooSN3LXSy6I42vYIhzVKo7j3VhhaiL56iww9YaTbC7naoUhkbLsfeVjogRQCejVtjtNZiIryLbNJoGm0Fci2X2+dJWI2POlBGW1Pp7AKBip6u3zG8keySKoP0Rm6HfRqgn3b+IF6d1Hevx1P5NJNZF/zcs7x2yjhAc568MzRrp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62dJGMcKGJ0tWykL1gP2QrZubZ9nMXu4bWMaUJxVJxz/9Om3IFz0WNGmdFNfpHJX2ZhVPMLAw X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48ad73be-8068-4782-78eb-08db7e09547a X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 10:11:14.2523 (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: 1HCZgJr6hKAr3YIoCa33C2iAdBLePHd0qKjUx0cpBp4t7r7RVIkWZrSRImLjSQZxnwjNTNG1xzojnMyQdk+gNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6447 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 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?1770666576705350236?= X-GMAIL-MSGID: =?utf-8?q?1770666576705350236?= |
Series |
[01/11] media: atmel-isi: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 10:10 a.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/media/platform/marvell/mmp-driver.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/media/platform/marvell/mmp-driver.c b/drivers/media/platform/marvell/mmp-driver.c index e93feefb447b..1e9ad79e53e7 100644 --- a/drivers/media/platform/marvell/mmp-driver.c +++ b/drivers/media/platform/marvell/mmp-driver.c @@ -223,8 +223,7 @@ static int mmpcam_probe(struct platform_device *pdev) /* * Get our I/O memory. */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mcam->regs = devm_ioremap_resource(&pdev->dev, res); + mcam->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(mcam->regs)) return PTR_ERR(mcam->regs); mcam->regs_size = resource_size(res);