Message ID | 20230706101100.75654-4-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 v5csp2452755vqx; Thu, 6 Jul 2023 03:24:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlH25WlJ7AMmk06/Lc+fFhKUSfV15OxKJNl1anTowspkXHd6AEknFAo5OTV/4nwQgeOXdiT2 X-Received: by 2002:a05:6870:fb88:b0:1b0:4eb2:cc7f with SMTP id kv8-20020a056870fb8800b001b04eb2cc7fmr1777656oab.55.1688639079206; Thu, 06 Jul 2023 03:24:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639079; cv=pass; d=google.com; s=arc-20160816; b=ZvWKjuDKNTLPm6wbJayEVUDyhqVU0AABPCyqcLUpX1hRQ5drrROAN0dBSM6ZIhEjei cU8CawttpC775/FPvPsxVRz7DNmY52/7pEIsI131XMNFmbdms1BtWpN3Kj+PBPAwIyQr +vUaSMdmP65f+nkSWqAXWAG+TesS1uSNCD83vpfWm+8lUFbrM389FuUXEde+I98dbsPu iIh4R1EfI5liLNaNznJwJgkEuYVat2L9No49QSAZ6Lk4fVvQzclTMsa/W00r+X0PYi5a OXssvyhEYmToFHrNpR3kg9ZVKOkCIpZtTdMipma9ZrKXpe4QJLYNL0sF+IrHYNOVHJZN gYew== 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=tfouEtqZ7uS6ZOcDGWijvrv3iSSdFp2d2nCGg6/ubeI=; fh=NZLQ8yrYQ98LL/vjMPwp4DpqDSBnaPLUnKy53sKw9aM=; b=tpuSnkuvrCM5RwknAJzO+QsgG+yMP0hQJihhtNZM3vnK++ThdevRZ1VFFcR9IAy0i2 JEyG40l2rXyisLc8gklq7fj6mhs5Y9Qm5+pgMXKdlem2PJG9tJ+YSBAvjhPzkMjHWaC8 nMICekM9USh+Uraiy3rRQ+ko5g1u1+kmUKuRLdsubeOeF5AVzirtivnJ0bz9jkZbeewG O6LMpy758lVnckU9rLQ/w99HGfK1j5Le9jb94RAIIkDd6IXOdTsCPIzS8afxDV2HkTJW mmlYbWfJkjoI6EGX2FCGUN4FbQPr5hDE7MQiDLXzmHlgTf8pmJaHQeHVq12/ngM5YHOG cwZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ac7WSQjo; 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 x6-20020a17090a8a8600b0024b9e5aa258si3498562pjn.0.2023.07.06.03.24.26; Thu, 06 Jul 2023 03:24:39 -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=ac7WSQjo; 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 S232257AbjGFKLa (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 06:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbjGFKLU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 06:11:20 -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 0C9851B6; Thu, 6 Jul 2023 03:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PCbXLdwEhtyFLb06XBQ7l8yjZnXSkyfFpPuOxmEIdONz9FRv5YhGy3x5WR78hkXPHwG+seZFAvnb/bmVs+559iFHtZkW90FqQPrFIH7EamAZ2gQz0vq1ZPdiHr2oyIKfuUZjUl2EVTnxNWXZjlCv6P5u+ZEq2mktomkJV64NwZwdm8V3enczf1jWMlQc/XOBDWJqRR0e0AUtvVOZP8ztfw6EUjuG9TIFA/RUfztZLzlZh7SRvvX/kNLB/OJSE9dkUh1Y6P8anUMh9SpFN6kFHFEQjeGHGx2pEItJppQ55Xcu+rQTUo+Bk3437odIoPbDxwGan9zKz7w9a2c+PPv+BQ== 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=tfouEtqZ7uS6ZOcDGWijvrv3iSSdFp2d2nCGg6/ubeI=; b=QbGZmM0kK0PfFF/NBWUSPgkf9v/t/4X9FZ4/UA+lSlYwWzE4M8vup4B7Sx6uOYVNoxEmWphtucCsRUdk+NxjUw7QNW69lPvVYwGRksO6ft95c30zWER94ny0f6o2VM1YjKFlADeDXnAlHdVDBpELnaOtUna4AmxOxOrmBZaul+ruL6Gz7M8q87lrZEdrTX6oZ9XEsvSKQFzgbSNjWp66Hmcfcjs0wtejgY7TReuBhb7XxKTTWSnZLG0kKljmjxtRGTAw3XwGwGTe6r2i9VxxDKd2SvhMMa1cqEpG0IJmVEbmj1AVrUVdciRdBjaSLV6pI5ftzZ1S1OtHddzbkOCMZg== 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=tfouEtqZ7uS6ZOcDGWijvrv3iSSdFp2d2nCGg6/ubeI=; b=ac7WSQjo6Y+jAwL0L/kCkmGWKyBx1amRWkiKz7f2wH1G+JAAptmWzMPCeKT1Kdc1s7nFk/q5MlvPe6TYx9scjpt3uea730fl0i6FIFX+dmY5AOEgpWSOVO25PU1vu6mRNqs09ESkkimz08tjlVgoiQd4H6kZ3z8dxgEKxpE1OpfIqhsYuHYAIDlNOR5o9ba99mGZkjkgHc7Sxcf2VMCUIfKQIPfKbaSnPedqu8htN6vNxtAmlTg9m1yOHXRz8l5KITe+QtnPppeZn72cpkLtqlch7d6O/5eIHy0A4Kbb9Gpps2GfeF1Qg/rJukZ9V3DWYaedIYRhUrahptRUSeODiw== 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:16 +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:16 +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 04/11] media: microchip-sama5d2-isc: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:52 +0800 Message-Id: <20230706101100.75654-4-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: 9d24267d-1e3b-4eca-49d2-08db7e09559d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mnTHNVRqCM9YIiyAOdt5BcmJW5YJFwqs8d/Y+PhfPxgYP+RsA42rBFO1mXjYR+ewFgi/V2KjLfHj2QwrQXEqGgn4hCJmlvGXmsbKPFlsvJbOH1Vs5ZiIHY4mASbAE86q4Js4lGbAurHhvbOA6t3pXESfTK6xuKkWNxouVFkoWHFaC0heSXXjlk8VY5Cq4nrS+Wge7oyW3RSw9x+RizN5qpDgxtDurRz62oWYLsamieom3oSk9gEYneCeJXszEfYpSouzMA2DwBVIzVEj0SUrPl8KaFwkB6PknKCoEXuN/Txn7m/2knDxYOaSv1BFhJu5B9JvsQcsReK1eOZo2gFD8VaFkjAJWSfffOvKgd06yYv3wNGckBqVI5cSsFrbU8OSiB+RtkDAKx4JYYCsf+MTpxOfkH52zYficg96l61g0XirLb078PBiXag7BoYy0y8U3HXEoXqVBV2spgl3KzSX3KoUn4RKtUbYv+F2dAzrJv8GWnpu1grickpXAgz9qs0nhln6KIhRIX8BrZz7j7pugfOI8jCyUjMV6huw6ICVQ0N++mycxC3uOv/ZBW82wu0GbQzxt+V7ofwEipg/RiiM8prf5v0W1yPX7i61uvlkW/LSFTR3YMSEGqLFS5GvgaCt 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)(66556008)(66476007)(36756003)(52116002)(6512007)(26005)(6506007)(110136005)(186003)(1076003)(6486002)(478600001)(6666004)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: O/zGWsX7DCjy3Zz4mRDP32tJMy4rujmLmigMPlTOP3pS+eepiTTbQWI+YGg4v/nlE/gIYDngYCALG+MNtUIbYkkaZPJJa94992XlCpwBNbp7phCThlouy1IvS2QjadXXsSE9DTJ7dU4i/3BqHix/7F4DWue6AkU4iljOk8Li2wMAY6IqdDJqshLoO+ig/BE4jJ+t24lIKOvvJ8u1R1uQdpLMkQdWd1/SPVFdy8QwMKNrAnvxZ+2c9BrZ8JVoSFLDI2cEhzjqNixV8sGWU4nJXKCCExoWBf3sBZe7bUYurjXhlsBsZaVPDyp/es/f90oVHHQymkS30IKadLgem35YuzbQq4ZcVyHS9KrYdFZHhEcEsTkLcgjExklh7ewCOHUCSGvpBtn2Ql/LfPPJhaItj4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VMaLJOK7GmrlGhTvbQss5QrxCMu6Y/FGeu+OhV09ImasBp7UlEWpj/HOxFymrbJkFfgXD2+oRdyI5bRnmh/TrALQBjlFNTUkpgx9sLPeLYD+nxKGrftUas X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d24267d-1e3b-4eca-49d2-08db7e09559d 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:16.1387 (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: aMP8O7uUt/ap+zawtkp3kgo8UymKFscjWhCoMOvF7p+csBHJYZ+oFiN9Qj7pWbS5sJo2+84mXgXt/hB8xB5p1A== 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?1770666411056701581?= X-GMAIL-MSGID: =?utf-8?q?1770666411056701581?= |
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-sama5d2-isc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/media/platform/microchip/microchip-sama5d2-isc.c b/drivers/media/platform/microchip/microchip-sama5d2-isc.c index 746f4a2fa9f6..dfebb58bfd07 100644 --- a/drivers/media/platform/microchip/microchip-sama5d2-isc.c +++ b/drivers/media/platform/microchip/microchip-sama5d2-isc.c @@ -409,7 +409,6 @@ static int microchip_isc_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; @@ -423,8 +422,7 @@ static int microchip_isc_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);