Message ID | 20230706101100.75654-6-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 v5csp2454424vqx; Thu, 6 Jul 2023 03:28:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGd5e/fyOk1XyllN6/cVa9QcKzYBGjf4xTA9jqoB3vn0VN8BMZ7qTPxGoFN0AKuHZeYZCFs X-Received: by 2002:a05:6870:e752:b0:1ac:e454:df53 with SMTP id t18-20020a056870e75200b001ace454df53mr2379173oak.10.1688639311005; Thu, 06 Jul 2023 03:28:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639310; cv=pass; d=google.com; s=arc-20160816; b=a438EBHLf4S87pkxt2V1+HIHs0rmVYguIklgT4IXJcnRlLPMHdDmIBPIdBh0pC1pFD EnrbD1EYNNhYd9pp02oZ6IOvfEKf2rsYVCfB73/jGWsgEahAWdNZk3BuLHWwJm+lDG4S CLWlDSaQ3XEcwBFZOO8PIJGHhlXAts+5fZHV10t9xDRp2bxmADHF6DYBDshAo+M4nX+N uV6oHjMBYP/4GKomo5xavOJl0zxiRAEGeE+xAi2Fn5iJYK1dLuTVTXNxS8tfGqodm3ke N2tnF3kI1NxLr60+078iwD5xRlMJh4rTd4LpPVdh5FZaAeXHVxqrc5C52dPcU9fZZA6w SloQ== 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=MS2FDuWAkni+a5EwCQTyvqVldbp/7BosU2IV9F9kZU4=; fh=NZLQ8yrYQ98LL/vjMPwp4DpqDSBnaPLUnKy53sKw9aM=; b=XTnktHxwPGxbaYQLU1LoBMV86Q7Ib+6mwpRb7qoMk9jL5UQN4SLJkqkrqonu50FNdM Y+7zAopFtLHvJdeh28J4rd/Gf4Qi4rBR3iSyowwbkHCPI8ayrsroV/bvKsGUWFjJsf8v RSe05Y+o0nN7RYBXVIbPyKFD6FMRSjl2yLlkSTm6fWsqaqakiUoCxzDEOP+Nzp9J7oQn 31k7Hxkh82P1A0jEpUbv02wXDeNGLsy0ovPEemeLLmqDC55eXl7IWlQ+eqiwouzfKOfj 5PZ4AYkuobT0rmpHQKRoLuLuZP5zETy8W++PONfqsLsD3LanrTjsBFbZjGdl/SK0oef2 zlWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=V+V6lRBM; 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 g4-20020a17090a9b8400b002640bed79cesi1088032pjp.122.2023.07.06.03.28.17; Thu, 06 Jul 2023 03:28:30 -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=V+V6lRBM; 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 S232347AbjGFKLn (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 06:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbjGFKLc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 06:11:32 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2135.outbound.protection.outlook.com [40.107.255.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8FB11BE3; Thu, 6 Jul 2023 03:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fwJAXQxPYJe3N0M5uT6zDFs2mIdqi3IK8Dm3PGVVFdf3cubBR50UnI7AbcX6OxH4UVjMxDeiZGi02WC5DShq0Zi0vAUShDhGPP4mMIBxVhrQr6zQnFaZsnp19f9emqyLFq6FPqv70NO0A/Vu1J8nWZSblPWCm+YsKFjD2OO5vTo88TGGDyxyOt7SHo0wSu3oyDUxaP/cHBbrarQhthV+dfAnnMAuimp43MZMZReBLpJnO/q1Q12vQH0aDVYnBGj6tiNdg8BRFfOYPBOqexu3twcmFQIpuUXFGzEJ6Cn0Ga4nvyVs6u4DLOvFfPQRmFt7WkRLxC4hD72Thhnmo3iQgA== 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=MS2FDuWAkni+a5EwCQTyvqVldbp/7BosU2IV9F9kZU4=; b=J0GYFpRZtv8aWdiR4Y2znYLS3ZvRFfc55BDKx2ltBV/D3/E4pyusaBlcUdlmGoJaz9O7RhtUeuvPfSfcS89QBPK/xr4Dd9T3w4rVL2BfUiBOzZavjk2fSBBIhRAeqvvu3aBWTZOgd5z56PcgEanroZAlxx3oEFs8ZoZuc/GbswvyftTDFlMr5WpXmt+hR5uRpknmjzEMwW8B39XSQ4q3F1BtctRhkqBEsUfe361UpsnAhkP6NLEeHTHjoRg0dp+gNAQWuNxnyq72Sxbt7nStjBNShVtRrio4Mz3McolbaE7/xOtEmgG52ZemDTWdQ8SYe8w/cWYxSRldxxCw5/gONQ== 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=MS2FDuWAkni+a5EwCQTyvqVldbp/7BosU2IV9F9kZU4=; b=V+V6lRBMNexLH+lo1blEnea8Z/YVc3AFelm+1PQ5yumePm9sp6zyVyYFv00XVoP5hoY+rILPE7E5SnH89rN7MDNQcJWFtkdqPN8WI7aNTc7l9AzORSkLIl4nbdaEbzydSUvggkQjXGVIJ9LkH+knBImNhuAT3bsSbt8WNorOoxkUE3wcOTV+AcLMxrN1HTjAv4NLELYqpdQzhwO9627VOGfSFvQ+R6fE1kfBAsywnap6db8tzKU0CpWQdSwvDJ6RmDeO9SOFFMNOcuAzjySc5U477PnAmm22fnPE4oJSS5UuqBm41eMY+o2qKNnV2HII9C09PifWDORHfR/wsqZQ5Q== 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 SG2PR06MB5287.apcprd06.prod.outlook.com (2603:1096:4:1df::8) 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:21 +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:20 +0000 From: Yangtao Li <frank.li@vivo.com> To: Eugen Hristev <eugen.hristev@collabora.com>, 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 06/11] media: microchip-sama7g5-isc: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:54 +0800 Message-Id: <20230706101100.75654-6-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_|SG2PR06MB5287:EE_ X-MS-Office365-Filtering-Correlation-Id: ac978c5f-75fd-4886-7191-08db7e09580b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 39SQiwkLR8H1cBIaI4K1yjTrV83hpb1p7ka5B6uEFtJjwWha0xK7HnM1t/KBZhMP3c0ehFNq8Qx5qtfbRBHFBc0e2KUaqmun2aOrTIjYiJpK1wkskRLq2EIXn058Yyab2v8sxTXP5nAfRBbnjUZs783JVjkkRcPaoUuL0xBh8ol+mTqGTuVt/dK/eJf2BOXWXBs7Evb0ej1nrtOsB+nkFNUlyccxxBmQcpQcLR+1WZ7T5LYFXvMF4BHdLCwvvaCLmxkDHVwOiSrLN9iC2yK5Nix+WuIR5AoaXJ8bixQMtsCAeTT8u2qyL1xY8R8UyI7j742ksH08pSl0fd3S5CdBqjvi0fKjc8JD+wc9e4r5/JWNZT3Q7w7qoD9pMlIJutnx9efVeUGF0Ti+k+fvECaLig162bByjpgeABP7TzxbH8CjIwF8QpFV2MXCHO38DeM91WI0VnTOYBud5lCyAAWHx0OyhpU4D/EHj4fd09hCEOmFKP5Ity9Os2cThW9eoDXBkx6tk65gv5uE/3SPOWXcP+0LOo8m1VSPJkJwhi0itSmuAGyz1VVWKfVHn1ZgLPr4wJDWQGXcViQQVCW8MW40c7aPLq1Y5/0HjDrEHlG+GF+IupT+XnyH/yvApBRoixfV 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)(376002)(396003)(39860400002)(346002)(136003)(366004)(451199021)(2906002)(86362001)(8936002)(66556008)(8676002)(2616005)(6512007)(6506007)(110136005)(478600001)(6486002)(1076003)(6666004)(52116002)(186003)(5660300002)(38100700002)(26005)(83380400001)(316002)(38350700002)(4326008)(66476007)(66946007)(36756003)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lNzgCj5hlZDYKvn1E+Vf7kyX7RgbQD3k16i0T6bhfuqdLZaKgOO/sOQUlvtbevN4Nw4Rc7rL9H1EMZD1EgN4jlynim4K4eyNMLY4nzuiPPlVli8kMT6HCxJxybk3jiMVFRdvz7Ko7NjtiOf+TqFSngSpLbtALsKkQteb+VzmFrtwkcMBzcxoaqcfc9a0blSSTcBlp6vO5eRphwIDqFOY6i/9oNtpXV4idQzLNL35nE+q6c2t2G2kS6XKC74/S3IU4b/9gub2FEqZXaFq9Z+n/SZGQad20+4In2ib4J9rqoggiLIelkhepPIFQiaBbrtN9+5bfyHaX7UTcpKJ/Kb48YrcobtolW601gz/Qzb16uHJc/zKKz8hVXfko609NcPl0mLB1YdKcmfrLl6mY9eLF+Hhrni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it9MroRzEsIxROydcahN5KNq9W/VmwacY/NEdYLjFRK54x+u8wluT+aWcn2/HVUTr5GJ1QwIx2f0483Eb8kelIUaRuQkwxpAZEN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac978c5f-75fd-4886-7191-08db7e09580b 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:20.1847 (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: sOxPM18ngKDq3lhQxHq9cyuMYnduk7SNllbcmUiIhEGVkg3v4CmJnW6mwnwL7NdTVjEPCMy6MmQ9LKhQ271acQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB5287 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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?1770666654536494175?= X-GMAIL-MSGID: =?utf-8?q?1770666654536494175?= |
Series |
[01/11] media: atmel-isi: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 10:10 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/media/platform/microchip/microchip-sama7g5-isc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/media/platform/microchip/microchip-sama7g5-isc.c b/drivers/media/platform/microchip/microchip-sama7g5-isc.c index 79ae696764d0..2543e05a3389 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -398,7 +398,6 @@ static int microchip_xisc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct isc_device *isc; - struct resource *res; void __iomem *io_base; struct isc_subdev_entity *subdev_entity; int irq; @@ -412,8 +411,7 @@ static int microchip_xisc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, isc); isc->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - io_base = devm_ioremap_resource(dev, res); + io_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(io_base)) return PTR_ERR(io_base);