From patchwork Thu Jul 6 10:10:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2454178vqx; Thu, 6 Jul 2023 03:27:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlGorhmMC/t006P1pS8WzH3b+c6y++EeE6phwlc5+yzFN0869U4+5zKgD0oeJfGhFAeAC0+/ X-Received: by 2002:a05:6808:13c9:b0:3a3:820e:2f05 with SMTP id d9-20020a05680813c900b003a3820e2f05mr1241205oiw.1.1688639271793; Thu, 06 Jul 2023 03:27:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639271; cv=pass; d=google.com; s=arc-20160816; b=VaEAVip+MhfLoPSJckjWEFX6pMfVFKnr3lhuj/Ka41hc3FtJpm9BN5Sc/O4qi2hHE0 WQ9/EjssZ4n75q8DvAStgbXcGiPayZ0ZVw7NvhdENYEg5YlroUJNm3w7tJILofIy6K1o y09BSaCoKFVwIOSzT76esZtC/I5+1WT0SpMMuqRvOPjjQo3Z7jEVt83PtgfR3Dik8OeA NkPWTBcm38ZFXse+4Nstp/dv+JScypdftdoBT+un/g6GpFXdFtulSnQZEfO5DIT9beWb 3zplgWLkjUtXFbzkJhMbWYDJOi678Ca00mZw8Wq0tRIFtDIygjtCPd876icIWZz1wbqN 2KPA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=j0U67ExCUHUlfUb1OY0Rkkzydwvkr2VAqobp+1bOWOI=; fh=+WXNbcXfbNd/ahfoJADU+b38mJ4XFK2r2amWm8g1MBs=; b=J7cDigeXxG2CEvsLSA4QaPsGpY7tjpE2TTYABbdxPCWU02K0T1wWZOO3FNHxImz2Oj nXkbifjP9YEAgw7EcQ2z/oEXLGByVW6dhyTxerGvjMYkr2KBnZsWuAdHFnx4xZGxUMpV hGwiMie5KC+S2smZz0iovrje1mg8QcSnl6+Os2rrDNNOVPwaJllECfJ/6qbmLkcbCj9l A3Gr6lxJLQeWiri3pWWuOKSUa0O15J95CPG3j1KwJMqQUeqw7KsDLIZHAAArHWWrxNnq OzyLhxf7ulrk2etBRwKmKeenH5BfXNQc6g6WvOp/SkDsNJNneTTkjx2v/mdSlmH2B64z JGhA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=pZf9WbMr; 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 l70-20020a639149000000b00553ebb05d22si1257036pge.34.2023.07.06.03.27.38; Thu, 06 Jul 2023 03:27:51 -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=pZf9WbMr; 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 S231948AbjGFKLS (ORCPT + 99 others); Thu, 6 Jul 2023 06:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231642AbjGFKLQ (ORCPT ); Thu, 6 Jul 2023 06:11:16 -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 C39C810EC; Thu, 6 Jul 2023 03:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UNSotEozHfXflzBwqY2hwpYALFNnw3yvgsfGTVUzteqL3jt1mwT8nfLFcj+mPZRhsQOJEIq+C5Ale38g5HPeqZld7bcPX0jy3LNqUYmHW8+80In6C8W8GJRyTur8KId5TkvRoei2OuqlWD/GcWWAQgh7pB4s0Ca63n3oD+rf4AVWmUaOc9O1iBpk2XCAhEeaGC2//iHQnBGZCWsmiCXotcqifDMu+Q4cumQ80cY82+/cK8dB3UnVOXGeum2ZULX3q6852x2Dk9v1PElbC/uGXoqxt8Ktvf9o6P3kq0xP/Fsjxhl3Dt358NBbh5FH/aeI2omsavSjgZCH7tKCB1ZE6w== 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=j0U67ExCUHUlfUb1OY0Rkkzydwvkr2VAqobp+1bOWOI=; b=lYyC25oJYv/qO+4gskOt+CMsiIK3o6A4US2+qdDeOZLBUfpV+J4DXePYWAUYPfd2VWD3VGjSVqP6qlANdoij206xaukVc7mZYGwi4ms6CI+q7EqtlRYKmIxpbqwCCwD89QJ/neZBs9qGnE9W0Bh7qXy65prAqOp5DCU6IhLr46ZvjGmB4s+eSepLqxNYVpFZCnJaS21GP2a6UO0Urk0Yh1dZVWSvRZBy34Q+JutNTBKVzuBU2tVbVhJ4A42P0HpJS4I2VWGZGPUJOVg0zmUuX/Hshnngg6r7qv///X3s2/gFXTGzMWV+d4n+7HUvvHXz6DJ0uRLajc80Q/pXyPO/pw== 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=j0U67ExCUHUlfUb1OY0Rkkzydwvkr2VAqobp+1bOWOI=; b=pZf9WbMrNLxJhnlFg3RXRonZ7A6sMMyTkda8p4/27NeA1Kq1i12TklZtu5eZ3E36x3kaqd7UIS3Vnkjq4E+9qI20/4KUthrbuJ1j2vU8FcwftPzTxYsZ/JfqkqDhvZcPbRvLJNkQc6CbOxbxRJBqCt5ziHxwd7ooj+IWU4J3dKFOx7qwjLQj2FVSif3MPhL8rvBoAZ1S4gdsTpQsBSsQKg8FmAj+w0Wx3AAqySwGqsLhXqaMJlRyVfT5RuMWM2D/FxtGZz1RIS2127Ssi6cZtUlR+WZN6IDkX47ExH6WdQRy0q7+Q5WFqWB8pN2QRjrztMhFDSPLjd1fu7dBu0eZhQ== 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:11 +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:10 +0000 From: Yangtao Li To: Eugen Hristev , Mauro Carvalho Chehab , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/11] media: atmel-isi: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:49 +0800 Message-Id: <20230706101100.75654-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: 4c264b5c-f35a-4aa0-95dd-08db7e095277 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZJVZs/PJZKK8v07t19LpXukhBY0vMSqwzkucJV2qj2DjfgcBE2zYXd/Ll3OKIEqhGaJOwK6PQ8v1XF6Zwl127T9sBlmKn680Gm1EfZjJBmQHKgvS7djkyx8pdCwYSd4X0/Mq/6wjBMFHKHCzYZsDgnNfvXkycidsheHPuHHE/XCvFL1k7m641owSKsvGGZ0WuGOdGPkw8u10L80JKb6hD3qUS63OTrzXG4RsklrfmKLC4IvUL74Iv8E5enNiV+GXnsxNxcfwuenuer4zo6OSPMbTnEmRoBNLAvZFklZyTRG4bQHDSIYP1+DOgoQ1u8eQBETG+yWEis2nMegyXsq3/c7mn2AeiUfVlogwadiScdt/NaorplNAtvrp8SY/Xza6VAS0y7c3X96kP5bZgF6snIAY2oFAFXKBKmkU4jyBMTAhAoExNAKTuke0c4iPE+kGneRaSQhZ8aqUceFRelnYefgVMOuoUR4FLI9A2qNUfEozLX/rnDcgqCgIQbnIhYoZOo4fy86p17pF+Knasb8hK84qUy1E3Z6u0CsF47EaWhpCJW3M0yugfEP9h+ywKSOM5euntKRClUwdwX+Se5hiE+Pw4EPXQlKvr3imiW51a2oeNAGVD6aOtYqSQ15KnymH 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: trduAeWOfMRL6SVXMB4zKTpldh+vOfDQow4EVFyznrkCS4rfEnO71vCkjBmqtUyoejO5+IX0HRICWHjPdJsgt/1uajXGv9UijsJ4TKWSBBx3s/WoaPotvyIK9i3Q6DZCvzB/v/UItxL0u+P3kUwG+x7iN5RoIch2Czgy5gJLV5FHyBPQ12F3lDDXfFbDKF60hyRnXgWQPyxaSOD41hNUJ+/1GI4oc2rbb2qmDGweXiD+4sw2O+yHr87yJyDvASZQ+leC8MCVqCx2+i35/KMcLTUnZrUTMvO7jxkkDHgSGn9/3DkwaMiTfJQ1wjYbObaflGOCdj90oBpoa+V5gDm4ahQFNPHzyrGPo8Y7lhwtW1dg4KQvCXTO+mGtfUbstCSYN2zD8zu13W8SCdnjM0yf+ou8cIAAbee7aJZlhmItovAMWEfqnSQwVarAYa/Nnj9tXcDw4DeJENjQpMkgVQodDHD9UEZHGYVYvUQ6O+FvZjHo+b2Yd2rtBOZ7DEaRQRlAedXLg36lfwJC9VP0V+GdCPuwKMo6qxKKCrQ57NR+IwDThRRxu+d27kJ89qAaj7lncADaQ3R4QBpugiN526k4+7e8sZQOV31EyB6Xz6fVgXhifaa+Mc3jLE1HSjm4it1+SbRvaKx6gQFWYtS9yWEDw9eFk/HW3h63gjy8Kv7YzXnRiC22TU0/izT8OY4t6PenTLGW8/eL7SNyZEIcXaJXRhIciXBsXtICPuLCOAAOcjDSbDgy52hyOHfESdhsx5K/ym27db1WxB/lCDuufeSdoK/FrhdHCTosQcYhimMmdOLhnWy5+k2cTv0YXQRE0zLjUsS6GgOxsMrwVXXvhTRLi4BqESgJAtZu7ohgPExSCBMKHcqAY+xMZzQzFLP5/vJotTsfZcAKQqFEiVtra0PyhR/wyVQAKtqljPw2Z4e/wrwPqs03K+Og+bRxERi+xhiSuVooRV5YwtlO1yVv7XrIklbJJiOn70si9Lpgz4/gvUK0hjGnuv3EDThQJXAhm+dh6D1ERTbf7/cA1ZplPFip36HhnEhK4FewCL6mCHh4Gr4uYKglHJdLeVqtCjKP72eq5d+7cmMTIuoQlH6dVoOyMe2gn5blYBtbKYtE8pX0Eq8kY3IQei4KIJw35pqcDRDCbsvu56bIDzLLxppIEATzkqqd031r2b5tkrgAZJ07PPvqtaS6NTWOFlcYsGruWtPhDfyxmgJcI1eEESM6Bq6xZRpt+hv/VHmrC+76U9xwPbaHEJznh0IA6c8EKHJkCVGN9qYWGyMevqgV3OcC7kKHKjNXCUf+VAeWrmgOctbJRdy43J9XXGWO/3O/mxViCBDZMjIHAUidA0texV/M1wWF3KueJzZZVQ2EAdqKHA5D46HQ2Lk3G2Ni9fquFE/UZpc7P/g0rT4he/p1X10cV3obI7mWh3B2UMQjtdKqr0zGd7VwIE2i/x6F9fn5vLDhlq1RF2aHk5pFC4ygcBhTqFFrQNn7+9SkA/C640Odp6WMDCMJMS5/+awDL/6dCcTbcmq4tIjw3sInhQR3obbr1g8EP5u6GhoKuThfmKAj0KaZaazCGLm8bKTcDth326cSLXWD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c264b5c-f35a-4aa0-95dd-08db7e095277 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:10.8803 (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: yaTVek0+huvfhjim31cSA7gp8PqsMd33MWiknBQhpuXErGh2fRIy4nCNVQgdBJjm3FIIDWXjMyhOQ8zUB2rzqg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770666612717387447?= X-GMAIL-MSGID: =?utf-8?q?1770666612717387447?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/media/platform/atmel/atmel-isi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c index c29e04864445..086353198d2a 100644 --- a/drivers/media/platform/atmel/atmel-isi.c +++ b/drivers/media/platform/atmel/atmel-isi.c @@ -1187,7 +1187,6 @@ static int atmel_isi_probe(struct platform_device *pdev) int irq; struct atmel_isi *isi; struct vb2_queue *q; - struct resource *regs; int ret, i; isi = devm_kzalloc(&pdev->dev, sizeof(struct atmel_isi), GFP_KERNEL); @@ -1268,8 +1267,7 @@ static int atmel_isi_probe(struct platform_device *pdev) list_add(&isi->dma_desc[i].list, &isi->dma_desc_head); } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - isi->regs = devm_ioremap_resource(&pdev->dev, regs); + isi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(isi->regs)) { ret = PTR_ERR(isi->regs); goto err_ioremap; From patchwork Thu Jul 6 10:10:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116604 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2446868vqx; Thu, 6 Jul 2023 03:12:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGosfrbREd7cprbxBmhzoi1juJj0RBozU7gsaRYAcEN9ckM9u9cG1iWSBFfqnWdRQ9px2ZW X-Received: by 2002:a05:6a20:970a:b0:12c:518:b8de with SMTP id hr10-20020a056a20970a00b0012c0518b8demr779710pzc.17.1688638335459; Thu, 06 Jul 2023 03:12:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688638335; cv=pass; d=google.com; s=arc-20160816; b=hQ7c1afhiFStJ/H0G5yMBwVYsDoqkXaZ5BUeWj9Aih6qWzeH4mYJq0AQP3FI/ar9UC wEDxbogaHQULvU+ORnaxI1mCwH7r7lwxD+wJCwsWjtCYRwo7G5vDrPbWZSf/3Udoptgl VGpPqCEjbQl7fnDjfPzmVcANGxW5pkFivXHklE/o2xqAlgwnZeE3EQK1xfmGg2YxJIXz lu79evAYLJa2lWhEmM2JpmGc0f+8jDtYTL1gPDDjLOZxzgvALxLn/6Digvu5sKA50Ule yZpe3Ueb6xHpgzKC3Bwr+mP/Sb6kzPx+tS+tI1lpgO/Kq4LwaXqfx3UszM6w6F0hu+Ds 1CrA== 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=KTxE+of8wCmkptrxhllbCWnCjYpgayfnaPWM+yL3Y20=; fh=qT1IeUN2DSf0XsMZhLUbcvGUECtFprkgDHAU+OykdgQ=; b=DLyD1rvwEKpfVWr7h5SMFm43hoWLL0OykmlCDOxPYE3OryZRIgWGysc7Fbu4gOROhn 0IJ+vrggJa56LRexDOZA370yb5YWSH31/RHWJU0I6I1Qn+DOAbhtZTN3n1dZLe2QbZqc mjG36n868qZqOjMuevmwXDDDspO5PHw177I8Uk2QyCvVHlTGc5D+quA+0ZY2mU23fKnM eNhCnljFFlJjT2G7uu7l9dCLMJY+zbYyDZNFj9fg6C5kn86elupSn2tfCHIVlHapnnDO xbRO7qM85MnZcjOnGv5tXuqZdv2MQB+q6MG8x5RLRIw+AXOH1KLI/5pXAXrwVlROVrAL rxSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=UPh5lAT6; 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 l7-20020a170903244700b001b89ba798d2si1079603pls.498.2023.07.06.03.12.00; Thu, 06 Jul 2023 03:12:15 -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=UPh5lAT6; 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 S232144AbjGFKLV (ORCPT + 99 others); Thu, 6 Jul 2023 06:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbjGFKLR (ORCPT ); Thu, 6 Jul 2023 06:11:17 -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 AC08819B7; Thu, 6 Jul 2023 03:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NtLzVq4iFAgT6NbOwDc7YgwAP6oF3MfdEp5IqC6o3JdErynqIvyRZrIS2agC1moV0qwslcl/fgRam9Ph4mqJnsaEN+RUxk+ZiYhvlRmfTj3qibaxZjXfKYqNWqfqLt/rXorxIOk2AT3SyamCOZizyInz6CODSrwDEZXkoOynk0mxR8uXVuuO/sCpp4QmIgk8ErkTxn/wRntMXn2t1wHUFk+jNwX2IQy+7wYqMtTazvtujVLn10WOsi5tzdN71gNuMVg/IdinD3/yLGuDF6ig/HLoJFOfyjnugg/XnFjrXMokzEEpnmlaVpYTlNQtk3UwDo7hJBCOpV1MoLEn47Q2yg== 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=KTxE+of8wCmkptrxhllbCWnCjYpgayfnaPWM+yL3Y20=; b=ZBYv+nJMnzn2SuRSHp7xgJgdnONZdJYpxv71gHzeOCZfoa1lrXKKVgwdxWk65sbNnl7KxG+o6se6ZgYetLrFbdzsqaRn3nvGzJI+zx/XUY8gXQZCPeHn7k/Sv02RwKgEUgvTnXvD2FdLjlf5hMjOt1y3S3nzJ72zvmHtTwzPchVli0mq/pvFzAjS8g8wdwRFVqL1alGjLbK0Fc51CIVnSaW2Omsv9X5oT77qhLN2dH4jtt91nIXep/CCI7N1OQxAHKez4kaM3q9UnXFJN7xVCCtL8/AypAxdLF7S3pg67Tmi5tNFYqmpO8wQGwf0QnlnIEIGZo1UCowMpWRWV7RMGg== 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=KTxE+of8wCmkptrxhllbCWnCjYpgayfnaPWM+yL3Y20=; b=UPh5lAT6oWMdrN3hqQPbhQN8E4H+lVVPWYhsj9K9g/jusyao6oISkQ76aTQoDT2HBDVABRQvle2wYTYGBei0L47WLDSRqIXA9DFEczoazgJVdX4WmNrStyhxOvYQWtt49jluZ+HEUzAir7Ajhib0bUXzLi6brt71ZfxfZmsx115H5SmZzY7Qv5T8NjLiBPq8vR5lkoQ8Dn35kMWoCM5dlt2QBG+t6lYNnVddImxxhdDwWV2CdOulnwNGYj5k2E++broU5M+CsmME+spHJDKKWs/QGXOxeftuC3fiwTOmYvnx+0eycn4fzQ/oXC4fZQI/kh+7I6sDmI8LiZQOhIl/Fg== 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:12 +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:12 +0000 From: Yangtao Li To: Mauro Carvalho Chehab Cc: Yangtao Li , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/11] media: pxa_camera: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:50 +0800 Message-Id: <20230706101100.75654-2-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> 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: 367139da-5ab6-4a93-904d-08db7e095382 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c24gtkZLe1g+6RRN1TLfsmSsr2qmeCTRFz5l0wn5p8l7/rVb7sph3Ov3aEGRPhIKgMHcWCBcXyjpfYTvL6kvCd4j/aq1QA7I7G3RQuyTJ1xlVDZXfR68nrUIoEu9KAe5uXoEB9tGFb+H6/hgbysGZ+mBfHHBjh3/bkYHYa0oLXtvZwnFZ9TAshK7BN7ElDhNe2Xikl+nYfReY1Qu7jsslgU2/rTa05UH6KGEgUPvjtiGme8sl9Iqx8FjL8lf3xfBSIcx/oG2LwE3q7y5w7yVpkqnFbFW5wRksdCN0Of2648cGCXt3n7Tc6tQKnWae6+uvR2IPiUeFEtvUCMbVg+i6GINXHYbQHbweze9ynBJhSXz+KP4PpOleOOSXtrY7whi/DQLBkXmfFQXZK/7LLj+XGi1OjLg22/LXWnCEhz0/FqZ2fkY0JT2PVCZzxkbujqQbXDjktB73seqwA1cPz2uE4UoiODo/O9BgLVat5i32hB8sSy2UFBr1kVGC+ldhqlaRn20LLSMm0ZB2OcHM5Glqie2ZNTUGZTBECQ/M0elFUvEcJ3JPkvqIRcluV5XUbkvyqw/EoaHMH+G2Xh/AUK9ct/xRB9TRa68mwWIoYDAq1pHT7GS+mJEVdveqdizfuNC 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)(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: wkO8tZFsuo6J3ea39VvxaFrrEb7s8ZVlGxyqk0lDungGYZtl8piCv6/6Ab1oaoJc6aRrMhTb5slN8XSpZOp0PZwVufibC2H4m/RvaoTaj3/z2tEQmYDqo/R15C+63Y2/HVuXNDbVFODLeo8bd7Tr0m5ZRG1iq4HSSMPgwdznW7zZD1SX4JX1qruGz87hxH+apM6GwtPDuRj5d5R+exAwTmi2EOR7KLeJvk3KfPUCVqDO4ZdlXV3EZ2MBmKqaBlD+lQ+i7ZyueRoWpaWMTT/kCnNYo7m/u4kIJbJDXD9/70hzh2e5697S3NJodCeV4OMlDjbBZBHzgXIELPraQ5VmtSOrqBtBaRTMlrZnrPb1pACVKTxdregXE59UF0WlHIoRZ1MNJK5oz3Nj2TzXq0yEyAMS2Ze+iyAWGAA6wLoROc7aku3UHxjlAto8DjJWcDvNWxqY7vG1NRxHcU9fbvakB5cmISOaLKoLZTDdYj86nke2xnFX3QD7hIz5dZ8sws+24R8g/jeezsrgwwEZsTAgSF7/c/hvnYYGFshsD/8mAb8/dd14myjgXETMHkKnuPoAR7F0kQrHmZEqOzVTxrlfnL/qNXUQQ2o4djqVNYlYaz3EBCnv72VKumqpQ8fRJgviAio1MGkpDX/VhON9jLoe4KCX4uOXgEd+wzZ0UrcHWzRYTLrOcYFrb8Pcb8UeWN7bpiSrrsQSiCf1ElAyKXdZZEy2vJSRYy1BL1KnpQoTAs035Jqwf/NgyfJG6+w+If+beot69ssln/oK2e+uHh2cGhJDqO9d9z/j488cY/8KWt9qTazF5BAHBtiwSiCfWJ7Td3SUiztlNMToqDo9AN4du7VwKL+J3ArfRgPhpfKlBSsTeLgrT7Lg4bbPLFSfM8rfCoEj/xoICuFfe/CeNZ3D4bEyOFOLprrRv5SyjaOmIfsLou5PKChNGT/JmnIqvqi70d7b3ksCiiBXr7Ksmvt1LdJ41KHDuKs/hLAjdQLexB974r2SeZn87T+4OujNOjfAKjmSwhvNLQIBUloFgonfa0XpCRJAPZ4LoNOrHK6uLVPyiTlZWwBT9tiREEPBxGgGOGHZpI+S/JUaWDGlOtfhPUORsXHg1icAeLjzAEbOwXH4pa8VxLvNO1Hb7f4Orklw4bvLHEyfpKE5Y/YrVAxL9sTDFEoUeI4C/NL3mMu4DZu7AEhXl36g3ri8h9f6FxVDG5rnLYZJtDz/077RmXin1k4pDw+PHO7fz49C3SmyM8GOkMWOws3vQp4kgKl4AIcG3GL9l4kdHHUpqfRAanlET92TUCTh8RV+Uu1z5KkKcJWQK2UYSoetJGOna+okW0MO0LkPWwxX4n4I7KHGOEtPOXlKfStt1iQwbnrOHVKoxWSTM71GyM2NckjDle5bPch1tgXtPvEdwalo38vdeLwNZGT9f0Le8lYFSbR7TjFt8lwQ8BY6WGmHJOXzjc+WQCG1vNBBewAHE1MtE7Dme2GQXv/Qe8k7qDGR0skL+BJVDG850PXUTG9z5Xc//AO7z8WfAQXVs0++ELqLR6Z2N7O4UBBv21xdtGH4P7GcFfVbV8iZSPLZLXaj8pOUmNf9ux3L X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 367139da-5ab6-4a93-904d-08db7e095382 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:12.5299 (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: He5Rd9GOoAJe4gwcp0vEjcsETeTNoRgcqr7EOLUVQS+KgxWbIKsPx5ybXD0vmo3+9nAhTCD9B4RnWQg94g19Rw== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770665631265642634?= X-GMAIL-MSGID: =?utf-8?q?1770665631265642634?= 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 --- drivers/media/platform/intel/pxa_camera.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/media/platform/intel/pxa_camera.c b/drivers/media/platform/intel/pxa_camera.c index 9ed3c2e063de..aaf83e515ff7 100644 --- a/drivers/media/platform/intel/pxa_camera.c +++ b/drivers/media/platform/intel/pxa_camera.c @@ -2274,9 +2274,15 @@ static int pxa_camera_probe(struct platform_device *pdev) int irq; int err = 0, i; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + /* + * Request the regions. + */ + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); + if (IS_ERR(base)) + return PTR_ERR(base); + irq = platform_get_irq(pdev, 0); - if (!res || irq < 0) + if (irq < 0) return -ENODEV; pcdev = devm_kzalloc(&pdev->dev, sizeof(*pcdev), GFP_KERNEL); @@ -2338,13 +2344,6 @@ static int pxa_camera_probe(struct platform_device *pdev) spin_lock_init(&pcdev->lock); mutex_init(&pcdev->mlock); - /* - * Request the regions. - */ - base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(base)) - return PTR_ERR(base); - pcdev->irq = irq; pcdev->base = base; From patchwork Thu Jul 6 10:10:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116610 Return-Path: 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 + 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 ); 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 To: Mauro Carvalho Chehab Cc: Yangtao Li , 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> 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/zcs7x2yjhAc568MzRrpbdlhF3ofyU0NjUwLljYpv/Yxan245DMg1Eb+LIl3jNI+Y7ysl5T4GRct1EId4J2IjkicnLSsaHYV0X0utUy0j9zWU5JXzrB7M7s7ibWh8TwJ6WmIs5XWH3mWReq46KbHW+9fI8f4uayC0tlz1aKXaxY4u7feDoa0vDs6WXb+1KIyp1Bvo+ox5OeOXx0skFfXWCn3ZAYdU5qz8ovTrOIWCoehBKanAzh1emTqQogWoac+7/ERG/K8f13DQBBmTJ549pswCXmNk0aVFf9e4oMw2NNNN418x0xFXtii4NvudUfuGXJ7hpdR9TnPIFS2X0H/fWK+a7gHgIMmstu+24TRJOZA4f/jTiAfGUcn47hAK89uffl/+R6SQ0x6S4ps2ZPMxnIpHwVqpjJM2q3PlUkipj4Cgty9/Uj9zH0VHWwJjyUc2ziI0y6NXN9r2RbCyzn9ZHM2FtpaOMF+olNL9JbDc/yzc+n6/sL3dKdPiN65qcMMkecWjnZ7HrZ4r+lFyBebYzsHtlPDioDvgq7Cca3Prelymi/p43X8rKe9WZB5JqW8IK+MAZB4ylteKmoEbx+YA1NZvDkqUvIr0wRt0QVkqoW8xUYOg7LL5dlVtDIuehj0WZof0yBgAC9FiqUKOxKU1rkStZKFQ+JLJYC0KC+o1A5IDuE5znpgJvNtxjHiLlMaXEG4u1EUPxhpKSGYz/LsT7b+mYmREkzpFFPkyxr8S37V8mLDKgEdMQzUdOS3NJNPRdNylGznRtQ6Q/LI5bcHdNrU4sT1uxp20nTY9N1vavcm1/Jfmdnh560zigYsxl2h0porf+d9qZ2yN4OiAqKu1jqU1QzZvMSU8IY10cNuITBDcghSLeG00D/4I2UcW+CmaaUgndgyeOA6ArNU9Ix5yA6JUuD7LG8R90ebjPI+nJXUtTTxol+eX7m8kJr5lRR0JVDhKzFlB6VxCxBw8l1lCtJQwoMJYRAB71so5QgJJDp5X6G6LAcbJ/BZ5oOVome4RZC7sDvjXW+An30PaKgoVAKFVmjQdoiPf5McDbUifl+/8NQuyskaUAtz0rcnEQ884w1FwZ62dJGMcKGJ0tWykL1gP2QrZubZ9nMXu4bWMaUJxVJxz/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: 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?= 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 --- 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); From patchwork Thu Jul 6 10:10:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116608 Return-Path: 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 + 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 ); 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 To: Eugen Hristev , Mauro Carvalho Chehab Cc: Yangtao Li , 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> 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/LfPPJhaItj4klSJRvcNW/tcbpOFNqhdD1t9ZFv65NRfCQpSfLuX7f6YaVnJJLA0iENG35usUxG9NojsiKQodOBuP4t6Fvvjg7WaTpBiwI7iH11XS+qTb/tRjkxR8xpUX/WoUNxuDr7w+1Mcrn1UyqQG/N34LW/rPcYHh/XX3cKdVGxlZTvvMAdwhoJ6g7IpNIyReeBPY6egQzM9KuKqqnP9MOyQ2IyRZY4sFr6VSjqKtBpK2B+luI4m2rxN9VugMetXiaZEUrvwRkxUoB0/3638V/Ylwylkqh9rteLbtf4PNd6lDlxI4pMIC4IMa7yRWV+xWsteCilM7OXqN1tQpNYSQVabFyBSBnlNIFmFHci9aKtKIMDlWlGRFOKksDHrNEdDJzXjkawmHq85Bb9y3KR7gK4oLC90ll7LAktQVvo7aYetsg5y0Dzdtn3ylYo4q0alVxzTx/2TVWvCE07zgkdkeKKZpGJxxzlERRX8BmkIE67MXo3zovSJvKLsivVakt9Di9MR+IvIhXDLvr/Yju7gfXfLs9iHmuDKMqeTwj0HzEOdgWxnuTqHdPoQK/kjY+7p0Z4UEFQX+jhhiG5MqszmBUyG43EejtkIYQfkeALWFOIBBKPloXkCVZInw5xjGA1zfaZZvpGX36QTBlDNDQC6oBzuxlWAXGYZOV7PXZEUGH7hE6cU0Kjr4qLi90na3GY0/prvX4STOiX+zYEDyBF7sgPvuzO3eBTHnPdtLK/EelT7DGHnCksvTFgS3vYqx0xWnqT4LCrtoV4cEvgnVjvZNebQHjvHm55ZMESEZhx80vV7d+GSLDSAWmx5e5pSeKN8KDVAbNpRHHe/f8QnaayMxnEEhGcSGOHZevShZHBKJGBZ95LNtWU2CLpebr5D0kIdFEYzViP6iPFf+PJanXGVxwPcZE/Mxl8U7nKM/Br/N0TqyKrgPBie6RaxuhElxy7retPtIATWFtAtWBja8Wf/Vjz6Es+Kb+j0UxiCFE8or4xwADhpp/ZfUBO56P9ZlZF1HgCuyOFxE+qNcEgQONrZWQtmfiphXoIZ4SxigHFkQ3QILsgXPO/1N1MYK/fzVMaLJOK7GmrlGhTvbQss5QrxCMu6Y/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: 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?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- 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); From patchwork Thu Jul 6 10:10:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116611 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2454045vqx; Thu, 6 Jul 2023 03:27:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6sFClxCqo1XP65w2b4Huw8FkV5mPPj0+0lneCbbxfAGDA/ietEVSQr4+AUBOL0T7hD/JV X-Received: by 2002:a17:903:41c7:b0:1b5:1467:c4e8 with SMTP id u7-20020a17090341c700b001b51467c4e8mr1323533ple.15.1688639250477; Thu, 06 Jul 2023 03:27:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639250; cv=pass; d=google.com; s=arc-20160816; b=fg3QUzYbLxVJMbgJapFSbpexVezDP/DUtDUXSX4tFJ5ImjCTkhDDyNy1rtIfgI0Qr+ BS56V2N5yCqt/A5RFuitzcgVFTQbZkoY4WpCaI5nG6MP7GJ3mnTGionwQqj3c4WVNgCA iJZYk/mlF0LB0FdTq9LxkOJNPty3gOM2KHBiOSuFNzgt+ib8NTUJCdhX0xftYMVR1VpN 8lZIgTcfsqepAZVCrM/UuQH6D+vjVfrEbklBdlH9B/aWNSzv9umq1n9Vl3SDWwNayml0 VFPJlAAljEztAghIRVngVF0tfQyxshbkdFS0iaAqTXthLukknSauSEweUUSNFXEmZxkV NKpg== 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=oEb7wQ2yN858EKiV1wEH9mQOxIfFLeAU3Cf5LzryOFA=; fh=TMxRfzOLSJLxxlH1iWO0eEOJITDapB9Xz0kyDQGXGI4=; b=mXcPt5+iHvOYt3f4OYi00O1Pm/oZSYzmxFDMjD5EBxPdf0XxE5GXEbLTZIQEpZ/X/e C28HeDJ/27pTVnicWNYmNW+ZyVD0cgq4UF6EqdGIGdtDlkDhRcucKVibq5boRFWXKMZz mxXhYumaY6Y9pWTX5oCJQlUlS89Q6LPDweR82HjgOpF2zohWzimdYW6P3SFlmShxlWF/ EwUsV62wOjLOJ21b3tVDHf2JuozLErXWF4SXbJ7uk699CuqfZX+uxzXavCSU0yrSkrXS 2atIeC4x4tcLyfOWTfyNK+MhZCEuH5R7iUCUH5JesjoxQtCeccVsovmzYom57rlXQzsl R1vA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qX5ZDOZZ; 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 la8-20020a170902fa0800b001b891de90dbsi1001858plb.72.2023.07.06.03.27.17; Thu, 06 Jul 2023 03:27: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=qX5ZDOZZ; 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 S232307AbjGFKLd (ORCPT + 99 others); Thu, 6 Jul 2023 06:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbjGFKLV (ORCPT ); Thu, 6 Jul 2023 06:11:21 -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 7B72C10EC; Thu, 6 Jul 2023 03:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e3rCfGxGDrqUqKBC2LEIHl7joPrScZFTJ53yJVh0+RtHKhr+HcKZTa1stJzLupVmPuRrsrMPB+OtV45k4yOpyltborh24Fa2o+vyKMENg0U0vYs+rTvPduCXAtfnKIlINNfJdvVorObRT3OMoQ83ANeLZoMk1RHxKbw/k7M5IiY/cu/D6+rCyacaeD+wXww42g42JW9ujc3IeqbSux7qcL/ieKwxd5rx/cR/rWoV261inWld/13yYX/7q9D4Imyp2KfF+6zr9XxoKOGLFbXWsisIZa5HD9kccGoTwHWJrmfMiiPnrTONn0Ok7/2GxRnGheRZcM6eRcW2PXLvlM3UAA== 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=oEb7wQ2yN858EKiV1wEH9mQOxIfFLeAU3Cf5LzryOFA=; b=cy8N6LUDDLorAIspDtdeOCbjOWY/uHYZZVkpXbKaRaff9YOd1vmLj0urcUXzfzQaaCzllajku1W4oGr4+D6mK++guzxfEkv2/t5K776oZ2Uecm0YCc+6blROZJZ/7nYNR8gsUdG3uohWWXVmmQyqvQ5aQb7OUqhxg4mTUpF1u8fC+uXGEiI+7FQ8GZG+PdslOaWJ+bcmwNWszg7QwSwSRQhSNYSyfle1bhzAF3KzrURedaPEFiIr4pQSJ9Ugg0ng6IwRKcsyZ770/sFJLk45Kdck68HGcE7Heke2lCshp+GJuGlfNLnpVivKdRDXbG4Uk7LkuW/tlwqRQ3KnYQ5qFg== 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=oEb7wQ2yN858EKiV1wEH9mQOxIfFLeAU3Cf5LzryOFA=; b=qX5ZDOZZIEwdfyNEBe6+jRXM9Xl//mJVBzi6DW1DyH58Wxf2mOhK/q9cubYYLf+z6d8bv8DcIfndg0y6+NrAOoT/CctsE5VmASo9SO41ieYRmJfExnLbehck0XATAsVOqp4QOgnQ9KB6VJmA6mFAFlbzZphWGT5lOMibyd1iFqR1W5Y83eQ68HUkPBHEq7v1G6hJysxxOPfjb+jnOmB1m37K6YMMfjnPlmfIW2z6EWtA98ud0g9VwfgQrNzf/N1AAVpMjmq++F3wl3Vp7rQ4hqx6Uue1OhNS+b9XzCMZNzFb6+PMha2W3oHpC2LuoIi8pcJ6sxWxK8fPZlyZ3fH/yw== 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:18 +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:18 +0000 From: Yangtao Li To: Sylwester Nawrocki , Mauro Carvalho Chehab , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/11] media: fimc-lite: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:53 +0800 Message-Id: <20230706101100.75654-5-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> 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: 285f3c2a-4b69-461f-c752-08db7e0956ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pxP90stcrYHQAwcIHMnwSVW4onX1faDI/pkAOyK1tIOqjpzdszCorHZL+/KOpyfK/TYi+mbcNmmBcb+13MTgT4YokMU+Lv7P+br2mRjvjc2KAXLE16bvAg3iI6KHOJLs1GwmtGW5aDA6fEduJF4G8Tkfaa+7fvLUhmaPqUy0BqPAg27DasUy0mrfGhRHsocZh65M1S9t9IVoLwKUNVIr1fWhlkP5eTl9evTlKeHxguA6KujuikGWhoFJip9YT0srytkCkbPtHouGM9b2xQb5CEGEbB8HuRLoqnpy/jFpeKMFOxVicnKrUy/xwMsTA2K8fFMvJVSjeZwpBNKZRV2wa7RADR1iFRXazYe/KREiuA1zAko40Q07AxhRYHBCyVqrlxTsmMjZMX8az4Rb0xte8i/gYE2PAIOHnrwOLsnzryHndLZRv6GwSHwwds2Q31LvmxMJ0OmV3xkHF1oICznxHpIljyOUaT5TXbhu4PXx6FfaOmgGzEM5BnG/ed5OA/p+Di/YAEnRhXc8oF7BJev99e7bembqf/bkzqcjMNDnnyMAnM8VEPbGTrvpuvZdkkyyE/Oquh7wfwQSp7iQojZbbDoK78XkQw40KGDoIkOJFh6yMSafMzCSi+0xZlBHYPJp 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: Cv7eQ+MHlLVaproVgBOxPaH25IaPlGZI64t3/OZqpeZ2X6el3FdCORSBlTpgjc4TuOl8k5CEvy6gi86tfxq7v0soz6YX4mGWhnhrUXqPt0dNF9HupNLM7V4TkdY5hr99L1okgVBlABHhhWUGD+TF15izDOSOyum4NNsj+4f4QebVXfYRyXlR4d++nOod51semzAIC1snmsnS1Tj1+fC6FYcVXkSTUHj0Cefu2D5YOh8TqLvmjHsUKg1+nnDyo5APDDQ2hVwLaflGPKlEdTzYVd4H2q1vyVi+yj66xvkxjM7K7BqAwg0D7wpCxFShFfod5Bto+peGteuY7RGlsiiEagr1QryaGVFTAg0o/q0GdaiWoj4tBsuKwZVJaRS7yMEja0tuvVF6c3mylZ3Q6cvbOnjxr+MIDuKtUTugA96uNwJjShbj5/ewCVsk3brfOYIQ+bG4pob0bk5OiYDklTLFfs6CWVZ30NX7CcYeWDqVJmTzvX5PtWSpInCwskU8d57KRZphrwWOIl5oqreHsiQ37rio06Tvc8sMAe5NpeOftYVjDYrtSstnwibQD8fPaiV2wELze0Ws9jF6dtz6Zcsta9SCeBzjPwaptJdjRwiAiRW/ybWPSFRTh+7Bu6Wz2Tvcc2pwXtWS4afjahEJk2k7L+GfL9ujny+Ly6O/F5aWNQyT5lrb93c12qJ+l79hoKi1zLmXNxYRV8a5mmgIcVbj5RMxYSk+7b0QMjQYw5EmD1J6g9dBlcx+6FzbHVvHcp12oz930xOYdLUqK8g5VYG66LeQwx/fUL7QTOdKF3n8HCJ135C5yRva6r/tcPwVjfRbX1MT7z677FUCaXCaE0Br7qnNSxaT5AMt5zodDsHKXh1FZ7N/+VJCRqvBZPkOw4LATSJrRoqQrOLcEJFI9hQ5S+RVoRlr3AF6vA/Fv3bgk7pWDksFZBgLwO7GapIxtUdeqMvy67d4gZUgnFZxWSx87STCa/DajNbogcvl6TJyQwOG0O9NyGbL2XS3BwMzjekI+Ego2LkqsmmLYDifzY/z9FSQlDxy6yWP1fz83VMCZNCM8cYatsJM8wVvqPYR66/P2d6/W5WuGUm6hnPPQKVwkZMY2ApAHS2o5b1uvrcSV/p2k0PQyaaI3K9vEnUUqa79SnBi5P4A1TrwxqNPJWoyK10dcjlSNcUlKPsCQzkFtP+SmdGqUyo8Oh1VLmtKu0Ji+EKZXEnzkUzi2nu3Oqvbl2Rb1o0I0mwHNjjTEKRFwlP+Dt4uuO+dQYwYKjE5XEWetjckArfG2ABhhRz3bhfhZ+4FhVpi74M10aANNkYTBSxveHXN76kcAnZMr8YQFaLvqDUjTXleCvupe2uCEvrboy5GO8eD5rs3f8dxbgG5z2SGjDPsYbn0nhrv8rSPUnPK7qb92S0tyyfZ7A3b3d3XujUTWahTmk8+Z/Zrex3Bv2dPD1CjfFwflaJ43YVHfB+q7bmw8bJ6GgwViWyEdNEyn+hxJeyXj29Oq6tZwfrZA0MzKlJ7vomSsZ7djvU//qCx+XoNfQQl8YEcTug3rd6FvP0yryQjNUgvt2J7qzIUV0uSjpPIQWiEZcXMHLBzyv1W X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 285f3c2a-4b69-461f-c752-08db7e0956ef 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:18.3405 (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: 68y3Cjf2/PcXJcYpJvKrcyzz8lJu+cb1HWEmpC9kH1vBijym0CDovjoxBFeT1D2dfnbsDsE/c66X8I9Y23pwDA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770666590897587247?= X-GMAIL-MSGID: =?utf-8?q?1770666590897587247?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/media/platform/samsung/exynos4-is/fimc-lite.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-lite.c b/drivers/media/platform/samsung/exynos4-is/fimc-lite.c index c3146ae08447..9396b10b5b1c 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-lite.c @@ -1450,7 +1450,6 @@ static int fimc_lite_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; const struct of_device_id *of_id; struct fimc_lite *fimc; - struct resource *res; int ret; int irq; @@ -1479,8 +1478,7 @@ static int fimc_lite_probe(struct platform_device *pdev) spin_lock_init(&fimc->slock); mutex_init(&fimc->lock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - fimc->regs = devm_ioremap_resource(dev, res); + fimc->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(fimc->regs)) return PTR_ERR(fimc->regs); From patchwork Thu Jul 6 10:10:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116616 Return-Path: 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 + 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 ); 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 To: Eugen Hristev , Mauro Carvalho Chehab Cc: Yangtao Li , 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> 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+HhrniwfKRydpKqPT0WdFCpDj2Zrk34JbQ+3w4oow4KkdwQ+A1AyATxO3B1/2soozHvJEYzi7/LXCqMhEPrqFMLkDxvqeoXLbWffhVH9ijiNyUNB5H42nvsrdk4p4bwkmrQwQoV4oDQJQyHA6AkyXXf1N75x1jXmgCxkpwHexPiX/T/2Ki/cSXO06oz8jnTWNrB1DeiXZ0EvNViY4GGXsqVgAngKRcKUUt0U9Q781v+tho22F1NJXNlyKT22d4ubCh5OusWgnFtyU3n3bFJoy5yWz/oMratluUm1mlG6E9LWJFiQUoPuDVFTwQeeJse6vaVtioQcYodaQJW0GAIYPwoRk5xHZRJrUAHd4621pnOuWNlzArEgXNCEXTVDuO2LlcelWNjCKLRVUXsf3IEW8FktfM59HunFKxToseayl70D26kknN2da7BhbdSNTVaSuyHFAxi7uQlIRL9T3w+wIYojVMVOHFHdJZ+Xts0RToosnA8YrD7rpT16hHEQ9NPXypTNmDESWAE+lVBKrTYFHtQJIXTz3jh6a6JaQh95VMF6SPYrTsLs5s42eubBFEeoMuFFfGkvooemPrdqLvw2IItfpOLHd7vToZjjgeRZjGzWjsbwDoV41o7DyyYNs4khriQ5aQZXbvjqqS+qAxDNKAzgwtPbq1CTamtC4Yrf5rmaK835Bo1lmS3NVkKcd35XAGL2r+LMUFfA+Sp4a/cNaq1LYSvOn0av9T87+/8aZ2/LhW+S/lUbnyhMGSmw8oTbtt4itUuvvifcWR4yjmDW57TYtZDtGnOzK1HAkZPlWkBMVMucs9Q6EDSBhHmRTaJjY8lCLux5jqyidKCoLo3fQhYF/BNEVI/Yz2aohBsXw9YFBgU1moluT0Bj9sfxS21opXhUtP1Wi1rk8Lzzu3HKo1Wy0buyCl3orgII8m4dBok9HmXZjcJE6l0aDol4FoUqcPn8XbJIpRE3HGyoI1Yw2duSh2yUduvJEEzl0da8Gu0yftCSkiDWqCfo1CkY3exiTWHACvsSy5AGkEjcf6ETLm6fVEVKGCiHR05jgQY52oeOoMR616Wg2CbuIlkWDV5m3bDOptQBit9MroRzEsIxROydcahN5KNq9W/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: 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?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- 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); From patchwork Thu Jul 6 10:10:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2454097vqx; Thu, 6 Jul 2023 03:27:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlELkH6CoTDQB3bndSDxCcB45BV+j7zQe16K5iczeOTFqCqILmTkBUhaKcNdJAd4yRH3OFVt X-Received: by 2002:a05:6358:90e:b0:134:e5e7:fb0b with SMTP id r14-20020a056358090e00b00134e5e7fb0bmr2205805rwi.0.1688639259070; Thu, 06 Jul 2023 03:27:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639259; cv=pass; d=google.com; s=arc-20160816; b=r4cVbk1/YXrep8uVi8VWURkWxJ10gMpZG+fahweu5t98NmLJqeyN8oQNlXlkbES/F4 gnnV2ZTzOCicDidQGmOnGyokgb4FmfBjBgxyscoUCc++wpIYia/T63Oqhq0IhQQWosaW E88DhnbHmLQUsioBMq7X7siZMYH/9PSrvMESHYA9dBC0STuCD7HYCLFk/l8w3nbRWh3o esrbDhNqQILwuAteFRUZHoisE30bz0kZddEac3lVbpXkBip8/ddK+Tv5XU3EkFB0ppwn 3vm6SMlVaWAo1MKeC010IAwCl9r9QSuf+pu+VhV4PIvBYq4sA1jv3Bu29xNOfGm2Psa0 egyg== 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=md7tMaMi1unlCGMomdwbM6AxR16e8iBpJP/txr57lHU=; fh=I4OpzPdBT5C+zE6ky7BJ4+j6JSIrs3HZfTd8G1n0rBw=; b=tdEr0etY5ukGOSP75r9XzuHtbeR4mIX3BcyoTWbZ+QRC5rBOAlU5kdaoLmTy3AWH2r KcAzIMv0UiDX6jx/cIkDHjnRZPER5vYP1iP1h+RaBtfTooTPfi4UsZIeYESR1quoy2M3 qsM5zvOO3oKZJIyhgnqF7Od/77ZAljahg6NSNCCHmeMSTGzpRY67sFklnjmBekJFPl75 Vra0BK0Bp3EMeqVAjhol8pay33CUyRXu9rxB+j9HcurbPjsa1jCc96RttKJFRNoxM2tp QBXNPxFMTxmEBD0bhTuJOBUvjR6rrZQnyq39tkj4lwU0jvd1LigLJax/AFGZR4sPg2lu srmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VWB2yHTL; 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 k14-20020a634b4e000000b0055b57fc53a6si1171906pgl.540.2023.07.06.03.27.26; Thu, 06 Jul 2023 03:27: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=VWB2yHTL; 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 S232238AbjGFKLp (ORCPT + 99 others); Thu, 6 Jul 2023 06:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232317AbjGFKLg (ORCPT ); Thu, 6 Jul 2023 06:11:36 -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 790EA1BF9; Thu, 6 Jul 2023 03:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fe64cXhyesR+dwexEjQJ4Ze76biHpyg+RZ0A1Gc26y5HMihtyudcBKiSvEUaq/V8naOg/7wBIkSmLFKs6R/7jqrF3S0Q1NMcGcIoOOcF6PaUnQhCvrqV3LdWbfQi++VJg9AUP+z8K1imDhyHcEO7XWuTGomMgNL4QJasITxqlPdiOxuHMa4937Owu9wlx9qad8XVBsEujaYX6i9FUcGSY1FpkkXGXacWAv/guw4yTM1H++KNKqrWeS2ba1V2uqoK+bYgjOozH1/r8spxMms5VmuQzDPscPoyOf5Pa7C+npFK7uup990OX4LB7vt0qhcrj90tAA+ZnMwz3bDoZgxS6g== 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=md7tMaMi1unlCGMomdwbM6AxR16e8iBpJP/txr57lHU=; b=OcD45CkLnpkG3jKPFqPlnw01CxTYG920faFOaXJfEIdRXST2KZ3IPfTIThKuHbJJ8axa/D4hUzia64W/r16KSWzSPKXrT2kLPrXwtiCyma/NqDDExkcdphm9TwhxWhrD47hXktj+VOAXAwavdcGEzUQGq/qFMschw9/ZGn7yKaFdcF64fT84C88KVfZy46yGCavByaHxUgUO9lcdC9354U7XpV3rY8xpFwO4v1fvYxbpB4o2d3mctbG3/C6WcVz9sdG2yRHtu6aZUgqoxe/0Rh1OhPLLwn07Bg0p2rw9DJo4qgL1WfrSSJ+VeHiSVdpThpXmvrUJUFFo0YHUHP2aoA== 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=md7tMaMi1unlCGMomdwbM6AxR16e8iBpJP/txr57lHU=; b=VWB2yHTLjyqG8wXGKLNbI8eCgpcdU6l1IdMWM9FMKWJPxeCN+LTUaFAu6zObK3PUdzK7l5sw6NaEye8BiVXf16f9sMZMwi+lgAxkkipo+MziCcNyFtpXAHTgW8LlZCkHUpbaCTAP6odUubHYgqPZMNwnyjUsJ6WF8wYd2uHQtj0ffYFfJdp6TYVMKqWrUAa/AHMCimaN7mBeXa227lhj9QT916QDP80bcu7bCkr35biL0Lth2RCMnO2ybwp/75dRwYc0j81sp+IHp+kwbKc0z3e4FHR1pCccNN9ax1J4Q75ZhLAYi/+0/rQvDyQBeZIEbY859y911EaEivADTJhSeg== 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:22 +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:22 +0000 From: Yangtao Li To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab Cc: Yangtao Li , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/11] media: verisilicon: Convert to devm_platform_ioremap_resource() and devm_platform_ioremap_resource_byname() Date: Thu, 6 Jul 2023 18:10:55 +0800 Message-Id: <20230706101100.75654-7-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> 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: 66489fa0-2e51-48de-e010-08db7e09592b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mDXUf/iXWULwlR1bO6nYmUODpBgkn+NUYyIhNdkrA8yUWZbSGfV4Nn27K8Yugx1v9LNN1OM0TtBzzYXhqvc7JXczQSCcYgteBkup6rpX2CZpO5uzXw6c5hOtFNADl1ocK1OWgdAXSHR4671pC68wo9USiMxo9QmValR7q/zDzSmrW3QJEuoRc+UnzvLvPaFAuKugnmTgUczb0OfaXbRwvtGDmEcZw7hnk0VIZzglFasFD1uWfeifjl95eqI00wI5cKipFKYxvUMk1Wx6s6o399d8CVEiAjNvT6nYtc5if0eIeKWSBaUW68i4ukXxvztht6lkKrWVCIaEN/SkVdrRURKdLD46d73/Ms1lRpiTkqH54HSjuql/8SNTciVl7/4lIVLmbAtG63hEVg6lBHAT5HiJMs0nwF2x0uWQhVi18YRLBF0Fr9oaSbWQleoroiflXM7P8l7frztgnX4WnbgOWIi00b+ckiEYEj4w2S/oRHlq9wwBWHRdpVTcFxkVrCaiIfpwEaTZVGM4uBdBRWyCjzUPYbatNSb+Xoqlqx+9/ertpbDmMSPFS3eg5jCCebH2EyKgOLdh/KALl/kwY2qnjyodZ9dR19dtD89wx8kh+zZEp/sYCetF+kjFnxbm6oFE 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: OjABIZSLqVrPpQN4g0+m93Vwr4Zr9TKzwyqhjG72tj46tcH9Z4Nn0cNva6ghY4p6HHGMccoVE8Qpv8/H85+xyxvbiVqQocTdKUWnTlrxj+5/Obc7+wo4IT7mFZexsGlSf00T2Ta6IrFc6IfTmoSsHmbtN8k+5t5fYuEHXqysHURwFDpNUvMwe5AfW/fewLMWf9N2LU6b7WkaSC4JCCIRjjV1hHdmV1XVEYMsujMjDo+LTKPL28sAA/HeqnNLAUd4vl5jjnnzVLNYyqEjYkKDRNl+NY9kaHjRxHmznUmoHC2jOkU4a5i3aAWAu5N8zW/ORIwaUdxAvrucxIkPWQYvT6WmaNeKJ9xLlrr8H9PaHy7vLbCwMxJX6uImAz7F1fr5pZXAm5ulxXw8ztIppqL+A3EXdZvetgHHlzhcruam7hbWBGHGoOFwaYZgc/CKElrAcO4/QC/vHiPwAbgCNxKIBHPZoiYhmacn3uKbDdrAd+ajendW/oARyROV63BAfFpdcu6N6/C0F+2JUBUADFsM9iDP7UvLknA8Sg3D2XdhVIq5tUSS0TbvZGrZ7AUcRUlyn7AsG8UGbkIN3LttV7s/r18sZEpIUguASMpXl0gjuuqSqMfK4VGL7OVa75XmVyL1eYQ8VMSYOPSEAOjdzJygpzjlcsVHSuS0YwbnE0pRe6y63OQ1ox5yBjB73NFaJVFqFEyJpvgMKyXoVqkwzt8VJp/f3o89DWO7UwC1tHnr0S2I3J2VmrtmH2xeuVF8Oa4ncBKSsFBRuJZ0LChUrgyhxg+xzF0SLWBzMrywGII/eD6x3rtMs3gFawpcOPQBhHhQXqQkmJ7JBmBKALgjRE3SCEnFt9GlneBxzmhzU8GWMQospNdDXfZID4UfY8e1FgWMbXlg5TEAFWdolEkRkksax11ol/5Ktf5f/l4JkWZ8O1xPNKqI8rnUD/yl5JFJcyQ3sSQf4LN0MyEZoziXkJD1NPvNdBn9WuJ65ODD2gjSqdq1RdyTu+UPKq705Hxp1eEkRHbw01oQGlVXt3DkBogl5YHLScWFSdlOdyXKcWSCrFw7ZO1iLdxh0DKR+Y1EXJ1u+xSewrhPtOfASr/QAwe/mtnG/YUb7hwYjlgjRNh/uDXGzKnitOmwtrYc2tWit4wt2jEv5oE01y3Zpe32dkOHScPb/YeaqHn7q4/RHz8ja/VH5SzVRYRmpmTyChNvj5OrECjjJbO0gYcDuPjnwFlrwLol3JvuRjqgroQ3SdUVjpou0QFU8iOxotPjy6mTa+QhZ2+qZWg+cMH55MJysS4i9NEeWuHQ/tsjGRt3eH6UoghZwOpcS71uaPzTa3dc2l0XubzuQ1/Fw25Lr8GMZPae2JI9rUqygFnCctJgG0E+Q+HPS04j7Wqm4RznllH4YKDpyptXSBHUWCFpKCYF1jttRafFUKfuaIsyG9FFqhAcK5kchE2hORtv78AyFlcHjGb9Td0spzZH+ujBOQrhioP3kNtffWEGvgX0qqdqKiZnbFFmMuju+rqPYyliOAwMQbNOPcxCj+SYBgQUARdlfLOzpPLEPoelllr3OBJcB2a81ZIR/TEG/fzPdIILiimMV6Yr X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66489fa0-2e51-48de-e010-08db7e09592b 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:22.0496 (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: D5ALM38mO6PxxMyClbLw0pFq0ECMMoQDobsmJDpaofX6CWnvUXGLi2o8hp53wXJJ9Lx07vOdH691GRkKgVqZzA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770666599649711027?= X-GMAIL-MSGID: =?utf-8?q?1770666599649711027?= Use devm_platform_ioremap_resource() and devm_platform_ioremap_resource_byname() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Chen-Yu Tsai --- drivers/media/platform/verisilicon/hantro_drv.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c index c0a368bacf88..2dea7e0e701d 100644 --- a/drivers/media/platform/verisilicon/hantro_drv.c +++ b/drivers/media/platform/verisilicon/hantro_drv.c @@ -986,7 +986,6 @@ static int hantro_probe(struct platform_device *pdev) { const struct of_device_id *match; struct hantro_dev *vpu; - struct resource *res; int num_bases; int i, ret; @@ -1047,11 +1046,9 @@ static int hantro_probe(struct platform_device *pdev) return -ENOMEM; for (i = 0; i < num_bases; i++) { - res = vpu->variant->reg_names ? - platform_get_resource_byname(vpu->pdev, IORESOURCE_MEM, - vpu->variant->reg_names[i]) : - platform_get_resource(vpu->pdev, IORESOURCE_MEM, 0); - vpu->reg_bases[i] = devm_ioremap_resource(vpu->dev, res); + vpu->reg_bases[i] = vpu->variant->reg_names ? + devm_platform_ioremap_resource_byname(pdev, vpu->variant->reg_names[i]) : + devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(vpu->reg_bases[i])) return PTR_ERR(vpu->reg_bases[i]); } From patchwork Thu Jul 6 10:10:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2449172vqx; Thu, 6 Jul 2023 03:16:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDUlESPYbjp11D2rSywHVbrgUZFMUNRPHuyqV2sR6Z7TVDGDnvtzgLFlRQqHmthKjrcmmD X-Received: by 2002:a05:6a00:398c:b0:67b:8602:aa1e with SMTP id fi12-20020a056a00398c00b0067b8602aa1emr1516070pfb.28.1688638604543; Thu, 06 Jul 2023 03:16:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688638604; cv=pass; d=google.com; s=arc-20160816; b=PAfO8ZoXKnhXhpNDYra9GlNtAGTGQD3RKdSVoJYUiPHQyHlCvAKAqKIuBJ7HYR7idg m94ucrIU+YN4H3OHVPHQEtf07t6bdICgmMAfwR2xVFN9bGkWqkuhvQC4S66ofuyZDld8 60K+AH6PsKI1sMhKwpU0tNX/g/ZGqx3ufoi0J6MqJzxGvt4hrM6cbbaMPoRDohWSph9J EJJpIsS1tRX28r/US5eFHR5VV1gbD4sYrXJ8MvLXPG1y71AK0Rqt1tnwLhUB2sVtZ+8/ w0nprSl/5qga5+RDByKrvtss5MbOwXGNiExqnhPzIQUpJk/WoGZbJI3Rx0lx4jinPE4j gK+g== 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=dMGHCUSP9i/hQaL7wQucQmUgHp7qf+NEj02kOBer8ac=; fh=qEMcMOUzROj8bGZlnLC+GQkzMs7ownzrWffrsJqfgnQ=; b=zSsHCzF1L7MdlRrkzNW8EcxSFfPTFp3wmTOA8HhZQdpk7M1biuGnLCOdt/TkY8kQYb oL89LEA/Z+8UszgOag+20BPJ54l0hQCKzJRMDK5Jh6UxbrYRcIqPfs+OBwpXm0V1Tlwo x3hHy52cX2JQfe0j2cW1nTqGotL9xfa5LJU88Jn8AbIG01IrK9GG0QW0tz/fiaBjZyc/ TY1DLjCOck31S12T8B/QBxzqsp3G4gnMZ0buzL1UMgc5UePTiGtfhHXKNUwuHrxr7qN6 nWVtt5s97EVzLY7jSXT9XGWjY7PLDRziY2KLNfgFSxZjxh8NgP8TE5uNOzKTSf39OoOf rXgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JdyCyO+r; 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-20020a630096000000b0054fdc622556si1178446pga.558.2023.07.06.03.16.30; Thu, 06 Jul 2023 03:16:44 -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=JdyCyO+r; 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 S231956AbjGFKLy (ORCPT + 99 others); Thu, 6 Jul 2023 06:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232282AbjGFKLk (ORCPT ); Thu, 6 Jul 2023 06:11:40 -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 DEF411FC2; Thu, 6 Jul 2023 03:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CAuFxNqPFT+/OnQObBvdr8JPgchCDUP6E+eMGS4YnYnRftpvkrizuaAS9B2ykxeBSgZD8KXgavj91Lr5G8ljaAb4+3/0MrMJwZUNKenw+ZlCkOD2/fy5r146Z9ZiQ/r0oMk6MMbVXw8S8PoE87nqelt49sm9objygFsQOYzkti1vwfe++RrZJ5PJGmqJ+XgWrsN5nE8FDcPJ6+xpSUvwzSX7ouXDamgPfrCkAn5i0ILUxlrtxdUSNVx5f1t4TX802DybmruK5hz4mIjx6SImaflgQt2FdVTQ1Jgl8nTm0eXMVKaBnVK7arsIvWaNT3PQoJpA19zO2R6ids3WlPzQSA== 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=dMGHCUSP9i/hQaL7wQucQmUgHp7qf+NEj02kOBer8ac=; b=DXrPCgCtY4oM+t7KdWl+Fv8WiH+/ZH1Q4VtzTuXGzM5i68EKtDyQyptAyVX6BdNe5uTBn3tfevpjgPBFYvS8sJrY/En0FlU61KJIo+TtKOgigz1dqqnR3n37n1o7wrrrkfHxte9L38bCDS1AS+KFXRIirGhq99Y9qhhEAcEiFGVvT8gBX+K3NMBEUATCkaeuvJ1o5TBRzg/pUF4xNHSki5kX0e+NvJHpEdnDlQ+5DR2f96zhbDPx8ofygM+ycietQ+SqmHSk+x2T6xhZTp7wKklQ7DgnbOITqICcSYtxUfEK3f3ewRAHFCctNNr470j5/C4+3DRvZ/gtD2ykepXZRA== 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=dMGHCUSP9i/hQaL7wQucQmUgHp7qf+NEj02kOBer8ac=; b=JdyCyO+r0+8B0oDzo3vuJxEDUE/jznIetUiHNaUZf+akf1T1g+NxMx7QxD74qQMakoi8gzK7svhmnKXN9eRlLHR3RrZpR8o30BhKI2aMD459lEhBhRfAn5vMKVcH9Z/k0vc/6cvaeyKPMp/PUMAzc+ez8A8FL4vqlFwoQ+nKLShMD9waquteRtd2iugMY9ce8hyuYqcrazz4xkvOBOStfknV0Z8+98X/RFQ1ticoqZJ2cPqIfpnP1J+tZnNSjaRisF0EItA2/aJ2u5Y01VnK43X3CF6+7rTa83jPFa3O6+f3+fJaFbpqy3g9LnAjnJ/8SdKhTRaD4jRBwJnq1G2mJg== 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:24 +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:24 +0000 From: Yangtao Li To: Hugues Fruchet , Mauro Carvalho Chehab , Maxime Coquelin , Alexandre Torgue Cc: Yangtao Li , linux-media@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/11] media: stm32-dcmi: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:56 +0800 Message-Id: <20230706101100.75654-8-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> 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: 96eaa846-28e2-4534-8743-08db7e095a66 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uG2ORbFMWM53GWL+JKoTgvrzCU+ICOS8WkC+d7Up/AnwuvmOyhDkwhJ9rebiyv5zkh/JCrEGSUsedzRnaqz73bpgEUZVTwh92t8WJOUwZ6G3KmzidJoJcEOs6NT6Ab7kHarNggxxFhHcBi51y1B3m47e0Wkf6PLOWqFEWLWOCfOUONAnuUxmg423NeL48DQZK414IM/MuEPdc/5dHph2FFJZP3dk8YkRpEaC4bkVfE+VyN0UEy7s0ZV3uwaaisskEehXTqwaGbOS1iF8up/DRmHKe7Gs4rmbf6Gol7+lFV5d1UcptaAvP31ExkmK4bnGuUV8e5cKxHv5NGFZFz+1Y1FUnr+AwSpZIfSDxZAyzP9WSyipMT+8iR8+C4QbpPnA3XcZwpvtqeRgQNdAXTJ2fweXyE9h1jA7uR3anohs9FLWf42RARaAXLtZJSkPXhs3Jwx00zL2eqI1vkruqzbOsCd9yHkyXf+jdSJB3V7FDRhKTKtTuzA/bYgqeB0R4loxZmskrXYjWJC6iYH++eSvHxJ4X/l4gSNxS3nXiCnMjQc73+YocAgPjXcVxKg0SPosjyqUoxRBZuUgrIWSaidJGjeFF144b20Sp4BV0cS05V+wpmLq1l9rzrM0npZaCehS 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: aOC14+dvJZSKnzl9k3SOhZoc58DBoOX+jkvUF1c7KHZrMNzYY7RESW6obX1MRiUHdh/WEB+0I023Is0NN0rDQPwoxg8Of987jX7TcYxhQZTvx9Z1TSqPcDAqUKopG9Y45Ou3JxzTNJDCYSnZ4kmYgFyMrwbNK9gcxekM1OVCXADiq5FwmSKbJhk3lzfXseT7P4iLfGDW7wk5i2UIF3UiwH5hv0pi3s0D+q3cBdPjIX579tVsr7FpexZOtOx76sEjB6Hw205MJC1Z9l+4dWbJYippvHgDfTqmoiSMZVK25egC9qpgactMXC4Vd4U35oyHWxh6MgcDVHLU+yvCo/1NqoY82ANgzx05Qg5K8b0+2AwdI7mq3tRG1zQ6jL+N1XQd9K2p9rENgNq5S3VgtX6Nkn2Kyi3mYoNq4BhSHWrp9i8OE/uLFFFC7htgKs5S2IvEzzjhzrdZ/9BiEVKjH1wqZxC8uktokiqtuPtdJ+eZUKmKtdnf3iTlo9S9Nyusjc4rfO/fIm2lzm/m5U53yQLebrBNFVje0As7EID+UStVf2fQXaer+xCXxeBz+2BIhIQ9slMBaiYQzmUlAHgZqEHFYEJcOc0K5MZQyKFw+0uWy6FT/5xqbb7+ko15aDPJ5nskmMVnfwu2vrTImoLuMfD7WCv8YCXZW7Qogh1jf/M4SLFfvUdiy1DVz9bzSfICVyHGPLW8/X6sCIpKM4iVkXN/lH7DeImFisNdjOiWv/ojeYcufU0ulfUy1vtWmlcGKg3k0d89u7Jdai+6ZcW8XDdjgwgjGN73CnaBT2+ESpS+TyTuO90+sL6LsMXCF6WPvunOK87TLCSrEnEvFqTe4aEiZO33M5NPza2zAAZI7WFloBgwDcLYnQUbveZpmOHsaI4lgCEE+DUlEh6sNwXR6wpSB8QAuDiHTAWAH7v0EdTixXV4em0ge0VQ3FrC8396y9zoySeFZtNjR2/pIbLXYBuvDropk43yUySW6H9mkP+dCLMoVrkBhgUlipU+A0QJb3IHDv9Z8z92n6uUml4r8M8gfr0T+sycHdq/isK5c4VKWL3P4j5bs7tw7+vFMGfCvmxiEiOhuTIMvAHeTcrtzUQDdfViJ+jsRXz95JLuMebr7xHFrYLtWQ0gAb5oYaangMcw6ps7Q15vvcdW5fwUztjW7avHQdnvM/LYR2ZRTj02asbmhWV5WinUA+a8kyv4xJj2wtxKGwy6CoSRGS4xRK0HdOqZHh+UDNWMtB33VIpZraxtPzfEOoiTFxZfZG4zIIKDgy6jQRDKiTWuVl7/7EQhbYnUmrMkNmR8VKsV/vuX67YI0DfwOSfjXBkQlrWb11OeFkn0uZqyXK590CMohTMvw8fJnrYTKGxVR6gZU3PyUtfL7F5GKtlddUWqeaPFb0ZkBqsMf1iF3zzwHOTJZQINMF3TQ3roG/RVzf+A/PlIH4Oy+tye65DfF6uF8h6uYzrfct/UJwGzvu6llPu5YHsHUI+nY1jRH8hqFdeJ8Ma6UNGPAvvF6PdLHmXVfY/dc52ipfgip8wOjliF4bFbdoASFCdXJkJjTkfTLz7Q2QZYIcL0dIvQD3OZ89xBHuMaqWm9 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96eaa846-28e2-4534-8743-08db7e095a66 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:24.1222 (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: PkzOzAH1R5ozcpIRBmpZKoM1rrlBOipntZvVzDunv3sbGmPRUUMKDq2aX21nckcxZ7vw/+WjdByhIJm1QF0m4g== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770665913403965269?= X-GMAIL-MSGID: =?utf-8?q?1770665913403965269?= 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 --- drivers/media/platform/st/stm32/stm32-dcmi.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c index dad6e22e4ce4..b2e2af593291 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmi.c +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c @@ -1932,7 +1932,6 @@ static int dcmi_probe(struct platform_device *pdev) struct dma_chan *chan; struct dma_slave_caps caps; struct clk *mclk; - int irq; int ret = 0; match = of_match_device(of_match_ptr(stm32_dcmi_of_match), &pdev->dev); @@ -1981,19 +1980,11 @@ static int dcmi_probe(struct platform_device *pdev) dcmi->bus.data_shift = ep.bus.parallel.data_shift; dcmi->bus_type = ep.bus_type; - irq = platform_get_irq(pdev, 0); - if (irq <= 0) - return irq ? irq : -ENXIO; + dcmi->irq = platform_get_irq(pdev, 0); + if (dcmi->irq < 0) + return dcmi->irq; - dcmi->irq = irq; - - dcmi->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!dcmi->res) { - dev_err(&pdev->dev, "Could not get resource\n"); - return -ENODEV; - } - - dcmi->regs = devm_ioremap_resource(&pdev->dev, dcmi->res); + dcmi->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &dcmi->res); if (IS_ERR(dcmi->regs)) return PTR_ERR(dcmi->regs); From patchwork Thu Jul 6 10:10:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116609 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2453907vqx; Thu, 6 Jul 2023 03:27:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFuXCoDjriaKZQCcX0y2YMiNpoauqWZUmNTWdDWrQO9zZYLSX/oBY8gjVK5qno0F1urXbt X-Received: by 2002:a17:90a:8007:b0:263:5d25:150c with SMTP id b7-20020a17090a800700b002635d25150cmr862837pjn.29.1688639233251; Thu, 06 Jul 2023 03:27:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639233; cv=pass; d=google.com; s=arc-20160816; b=A3Kt+/d1bfxJGSxuCNMcHYE5oa9jXtlmN8u8f1pMe9yP1DxIIk+1bSstCRCA5h6Y6d srijWJf7PBrT5AKn9duJO0VcAo73TsiICeKZDLHykh1H9lwAcfA4ZLbkLWmyREAVVGrn FMo1GtNlwYy8WGxIO+y8UCP1RpzyFzSEZWWsIyhfvGbTeXEr5Votfc/jduBAy07efZdc zlb/Angbf1ovIcJSVwUFzvk/1lHYbsu/vasm2ZOUcUPc/t+n71DF5ttjY9ha7OHqpknW l8DKw51LEhfoznpkNXvVcsax3K7uEuM2/rGyJaSJXgykfjh3STxfsy8d4P+oTzXgkVDU HAxg== 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=AzQdBwm0YUNBzjmo8D9Z/4M7Py45GLerlbZjZIF7NOA=; fh=rEf1l8h1ePLC155Qn3TFdcbBDnc68XQPbd8rBx/dzWQ=; b=p2NkKyEexy4+n7ZJ+5+YdKM24B3BcpFcSpmdhtRt8cl7Iuo3pueAUqd92ZOiWOeSBP GrIWlRpM0me6h5xN6CHLLT8qD9qf3EO4rzGhsU3mGQhb2tSYUVyhMe+7NdJkk9GxpKUo 8dik0UEQq2+trlZ+Gcnn+6y4otf9DcwXb8xT5rY88a9KMj2fK67WNJisc4jClpz2Yi3q 7q4TbcZJ6/qW6hVzborWjRORFvFl4Nl9ipWnmA2WLYxnt2JdJG6yRJbQ5RMGYWMhCHHS b67LsI12eufgks1kZJBCdMYvC9BpbVULUrTYJ3QD91c09qm+QUgPWaHsbhoCnD3VNLsE Ytxg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="pa8rs/gJ"; 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 pi6-20020a17090b1e4600b00262d692db39si3921628pjb.12.2023.07.06.03.27.00; Thu, 06 Jul 2023 03:27:13 -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="pa8rs/gJ"; 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 S232473AbjGFKMD (ORCPT + 99 others); Thu, 6 Jul 2023 06:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232329AbjGFKLm (ORCPT ); Thu, 6 Jul 2023 06:11:42 -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 9D0941FD0; Thu, 6 Jul 2023 03:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UC2vVQmnyOB2S5WvWEtf4F+gphXhwB3aNdzamuvR82U6Y0TrNYI8SilwJKD074eExmuO/dKHPm95OmzZWWDvfBooepXuzoA0E0MW+EUS/kRt/Rktz72kehtwpp1ZmQKacWxyRTjfdfGY+ZKfBJTnllzRq/TVuJVl4bCALsWbEGAPT7ggAwyTz2JZ9/yGcYoUwPBkGjnozDrzqMW/J/J0b5ZemkSctHLS4Sm8/pwMxOnqsrmTyQ73qWH/vpwWJFFENQXYdgkMmmev3nnHX33kvQ3F7OnxZgkmTdbk9Wbxyb/8559em9OJfvDZy3XjJb5fJ/lTtz9WHMMAx+TP+x5NxQ== 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=AzQdBwm0YUNBzjmo8D9Z/4M7Py45GLerlbZjZIF7NOA=; b=HXpRvzWEDfOPlQl6DBrxUqd/fq8IrcPNLvz0kteAOqvlYhNzy5KOChEyxdSH1gFLoMJNHsXz/ftFsjAu+JvCbb0PyqSarcCUUs+jcg7P1nhGgiwX1k6D+XQdkrC0pYgNpcSHbK3xmYQx71C4GkMCUBenLxauMVqh/+ltrhk4CyD3VRbU/UBZfU0UDesqh5RxYHd3ybDXJW8zZTQzeAVTXhzfwL1Q38m/XjPNTb9732FCBsQsYHhAQaJSscROSKMqkym0zTDPHq2QHqQmQRfRoCFCWK07m99eyItmRO9KeSCoZsNRt3bUNKaTEwhxnJ8q3q9ES2jpiIlait6jdm79nQ== 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=AzQdBwm0YUNBzjmo8D9Z/4M7Py45GLerlbZjZIF7NOA=; b=pa8rs/gJrp2BYSPaxJ9juO54ebwaJHunTSLAMPcCS37CdJ4goO2MyZ+o3A2YR2LCHFxSB+71/u15Hyahlwy0i74N3+rw+7abGewBmUVDSwJbkIKEEaaqC0RRSwNiQgakFQbpng63onocqEtKOm50zWx6haecTETj9QvA9FXyN3rvJPjm6X1h05bEXln0E01ZFuzW3bIplzsxiXhY5hdoz/eQsqI6s/LweO/z/akjGJqi9YfzcTNR3M6XR6UEInGKfXEa7SltOBs/1UlhNDj0g+mAulOEeEZtbMp7RDok1eyGc9l4n0Y7cuS9Xjf2PdiVaZEkM3Vq84RXIh41YwKksw== 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:26 +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:25 +0000 From: Yangtao Li To: Laurent Pinchart , Mauro Carvalho Chehab Cc: Yangtao Li , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/11] media: platform: ti: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:57 +0800 Message-Id: <20230706101100.75654-9-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> 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: c86a02ae-bddc-4c6c-5b02-08db7e095b6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bgyFfyfT4OpuNf5jST66GBleoUQH/3+LLRvhkWdY/4epBEn6o7urpT/XBAQeW2GIjvBZrzEa2reuu/2AqyrmCl94/AXLpqigP6inMrycqneHWd21eiPhkF24NFHhPdeNn2YuImN2USVOwL8kmxb/tahTV0e/ghIfsfDLQYxOitNCiFDzzdETZIteFErnRZvveyCPI7uFHHEKrmaqW3buhrgIIR6PT9pBtHzuKtjVbT7LB6LKYLYosAAZYKQS/xs4v4VQbrFnzQEqxVQIvqzoZ8ZNyX735RLXVi9jQgavGMW17Z0rnRLS+lMXdzhANCJu2PIKMJE6e9938duq2M9anQ6QkyZIxQARHX0dRvNTZ+Toika5PeQwnmkCewIjRg+u3WYIyPfhBsssv3KP+U+o37p4b4zDvLYq20v0DC7Pj95jbRDJpz8mnvAoNa1JSGu2nhbUZ4/yqjhdDTMj6ehyBq9ZvT6TbNVOtK8Vbo2OPPSbsNzQORZF1qCIABn6pRXvaVOjjkNyfhuFGvNvkJZzFs3eMO6PQ32KFlFDD0lFNVHd1OUyKwE3BXRnBmMmLcYQpUQFDvVs42psJ28pUd6YaRtDeMTfYdMc+8VF2wRSiCY+q0UfGRzcGDPxAfkjfTue 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: r2amZgof/gTEM55XNfu8kAUSeC6FGKJaeEoYBaV/Cp+EWpHAjBpixnZlOo0kOg+YhHHecj/zZaySsCgKj5gap/jkbuQ2/iQv57vYcgqGLd67Mqtd869LMbxC3x4iR1DTokg3iWE8i4AdvrWsf5LXhtn/t/HUXEzr+jyfzu/ArNcVtby790nRpiQYWb4yciC+LoTmtv+Xyxzpe56D+MzuyZ3Vmw0M8uasi4nsuHMIzLv4ILvMsbbZ4ybvhhbVok82B+hgUMTULSJ/9rjYN5MAfCb8ceGQDonEyb+Gga+V7SX+M1B/lttseBT8i0K0Uxl78JZdvJw7a09qH/6qb/HIedhzZUONIUp/rVcGHQxr0STjRR3QDbbwxr0BSXGzlaNXg5WVZf4FXZz460DTW6kTm2QeE+dN4N18yJZ9DqYE8dhwRyrMlTSD4TobvgO3Eiuk5EZVWdZ7XhMnezCWiSt82fLbvmW8LeCmF9TwO2pFGcoiGxeRLQWlqDxeOO17Paeov6mg+3Zqs+mUy6BUkDpQBFHjWNmzV3i/a3ZcP0tXAcrv393m439nfRxSKMmU59bkmbEKh0IYsGzK6DMrU/vr2HQli5ZpvPYpHIpbHK7x8eOG1XoqKxxRb/jhoxhQV1HT6Qb6RDnHpExtqYB91hqCltupasaEk1PPiNEbVyHuoenW+82x9V7ZvGYWYlvtSUyRaBotM3g5m8x3sQAImsgGpCa60BtY4bMDW7R+LBZpmQMnBhcPAmGcRxMiQijQgNppHKieGNP3/Axb4I4FnA+BdABs+1IfEKUH66l5rzPONRd5Q2RT7bkKCOWy7BnOqGjw9tOkK3of0zD8PIOsXF67ro2+MCQ+sfsmTa/3s+in1I6jondq8MUBkjg0kvZkMt86VGTyq+DiT1KfJbVhqVRXqUd/Cmd/9NljVlk1HKf7gRwxeDYqIZZ+DaAb3RUlMhDQlt0OtVZQIiIsrv93CCc+gYQSruergdxDIeFHKXE/NlSzjXmw5U8u+jl326PRGgpDAtc6NasgIgDBiHTtbyw2vsiAdu51ElauwSXLHFRD0wsyeuAFjKTRf/HAkABdadhN7P1GuFJgPhdt8YFOfyNKOC9ZZC38CcflD/V/PgxhpTGoCzcYDBpWRonW20y9NpB/PFPpsVaM9xae41yyzsrbCC+G3p5esvpE+oHB4kZ2ZHqWQCHUOCV6coe13UdaPrEqm0Z53jzdbxTDYvXEvs8ZGOYcI6JjKLmu3hQd+FBkmWyJavb0bTGV4GlFE7b0xo68kAy/HR/9ysX3KvrQMWpzt83Iyem6jJqzeL3P3OlbrThDHi0i0BNWXAJu2Jt90nzqE0MssCgeN+SrqtDD5kKe74muSY7lVEJwDVANp03ZzAcWB0ptLoA2vUOyp9eib4Xt3xZPj/tG3/siFTvYBBC74dNQ+yva4O5+HMYEJ5CLO8trrnPuc585Gz9Ricl+ylvdvTluZ3mPuabPdeL4yl7XuYginFdDQkX9Fd2EwY73ng+t/Aien4EHI2KUisJhISQxHl/co5YzsnV2QEnY5Ner6RewWAc5jimGS2naCacWk0fN8Q4+pxZH6rchcr9y1QmZ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c86a02ae-bddc-4c6c-5b02-08db7e095b6a 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:25.8583 (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: glAEzU6Oh10z/pZMZu0UJdCKQtThuE33e9yz0k5nzjznZhWpkOHP5f+JA7XlstoeFcqPaj8EjEQRMKv6tzhiBg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770666572906253209?= X-GMAIL-MSGID: =?utf-8?q?1770666572906253209?= 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 Reviewed-by: Laurent Pinchart --- drivers/media/platform/ti/omap3isp/isp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/ti/omap3isp/isp.c b/drivers/media/platform/ti/omap3isp/isp.c index f3aaa9e76492..1c8e4ede29b6 100644 --- a/drivers/media/platform/ti/omap3isp/isp.c +++ b/drivers/media/platform/ti/omap3isp/isp.c @@ -2329,9 +2329,7 @@ static int isp_probe(struct platform_device *pdev) for (i = 0; i < 2; i++) { unsigned int map_idx = i ? OMAP3_ISP_IOMEM_CSI2A_REGS1 : 0; - mem = platform_get_resource(pdev, IORESOURCE_MEM, i); - isp->mmio_base[map_idx] = - devm_ioremap_resource(isp->dev, mem); + isp->mmio_base[map_idx] = devm_platform_get_and_ioremap_resource(pdev, i, &mem); if (IS_ERR(isp->mmio_base[map_idx])) { ret = PTR_ERR(isp->mmio_base[map_idx]); goto error; From patchwork Thu Jul 6 10:10:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2454555vqx; Thu, 6 Jul 2023 03:28:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEBen/r4HtnWDcZKViy/H+lucE4oimqtsFE9qh+yh/pMBRoKxmgH5GGKa0NLVx5yGLVRxW/ X-Received: by 2002:a17:90a:5898:b0:262:f029:6946 with SMTP id j24-20020a17090a589800b00262f0296946mr899019pji.9.1688639337146; Thu, 06 Jul 2023 03:28:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639337; cv=pass; d=google.com; s=arc-20160816; b=KEZevKmrSKzXXvpoHI+JPUO+M5KsmhhdHr6I7YXMnvVIT5wL96AGDn0NVryNWjqMvB sDlOO/Ntg7JhOLNewei11owCMLIP1DnymxDfHTxDj75eQyjcvXxTXhnx2tztRBrDvn9X mRC8HiM5N9MPLGH9UtrmSS1s0Chq55zGnGUmEq3laemBOmPARxF3I0XHiPJGDytzi05v TrtuUIMQ+R1f0/iFvb5pYlmDYZ7A1Ih9VKwkkjDo9TC1e25s5i2CT1wJq0944QX68jpY UNYWDJDvH+QDERCCkFSBikif+Kx15MXI9HTcRs+NJsCVXq9G/495kN/fOp5Um3sN0CWb lA7g== 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=32Uv43LxUrBhK+2tw60+pa+ufVqWb9XEOgswDfOphw8=; fh=TMxRfzOLSJLxxlH1iWO0eEOJITDapB9Xz0kyDQGXGI4=; b=jF+KFZXOM+ETW4hpUj+SjnFDK6ubPB3gw7CWwXnWFhpgMvL0ce9wkNYDWq5XMuVmGd GmSTYaZJ2pO50AntA/vva+RXyizS2HKCevKfjXFWQIKX+zSGgxcYohIC7ONJeVWnNaP1 ob5qoq96m21q7J7ZemwSQyB+B4FwbD00EsxUSYmJBJCov428KVmqHZh8FF4ez/ce1f+y lLmA2C2wjUWsSmuSMDqM+HSpaIIYR9CzeuJdAekqeEqDElRnAzoOx7lJmiz/J2PynTvK VC7WSkiM5ct5O5fkYMde11+H7JD7RFB2VVMdBi89Sal056M1uMXFufsshIvom+rBdg6e at5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aE5xP+Uk; 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 bf20-20020a17090b0b1400b00263c8d2cd0fsi3539878pjb.148.2023.07.06.03.28.43; Thu, 06 Jul 2023 03:28:57 -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=aE5xP+Uk; 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 S232322AbjGFKMU (ORCPT + 99 others); Thu, 6 Jul 2023 06:12:20 -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 S232320AbjGFKLy (ORCPT ); Thu, 6 Jul 2023 06:11:54 -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 D19161BC3; Thu, 6 Jul 2023 03:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ROwhRr/BYTizapCASt/lu/qhTm0dUNJoUsuw8tmCU5JLf3EWbXE+tVHsLfXur4PgNaC4WxVNpL26nUqboNx5OTKvgRdTnLCTWc3fQM9cXZFdUKmYX3f+Gd31QjTRqHPSD2eeGpCtXGdam7IUqZxgoMVPtsKvFEwf61HrYNLIGvMFfFirE8L4z7+pIzQh/IsZ9aCLothoQYtPQF+BObasSOz3cTQSVRhKplyB0R4v9cYDDiU2co7vrOGtPQ+4kigWgNTVYBFsGPcMUOgyziZUVdmGpt4iNYIGE0b6mc5gL31kxYh7zWTai3zIEI3fNPn7NfF3/I3W+j5TsruZ40GkcA== 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=32Uv43LxUrBhK+2tw60+pa+ufVqWb9XEOgswDfOphw8=; b=j1g0RHEwkw+82IAtGxrWxctzw7TsvjZhk2SyMKU588YUBMdXp+0t1mT4jEg8Jq1TBLjhXsoHbJz+WKr8ON4S9VJzGXIYTndv2QXky3TkxPN/xmygeWxo3zfnRlXq6hBYIq6Wvp9/pMhtc2nnxLZZRPmE6EKCNy+DJA8qyh4H+9orWUFogZxE7toH5vmgHcUo630TFC5D13KyvjO8AXwi71COnnsKLYYmujXSzzkq2Ig77oUlEhsnnqd9Ng1Hy/5IVvETWHof8wcUFhpwj/6QGKeHW7ghu59pxcEnQUI4Afe0I7hUDnIiLfoBKMboPf53asbO4lS2gJHiAZJGp+tBtw== 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=32Uv43LxUrBhK+2tw60+pa+ufVqWb9XEOgswDfOphw8=; b=aE5xP+UkmHg0Mqayc42ueYQhhNp0qpXeykd9WaCvVgIwFfY9bgKjp+py67YZllnGDOt49pM85Rrlzio7xrWUL4S2Ye+kpWaczh1/BRMRAsOOeZvRkjFBC2AN1+fA8xffLV6F6p47U9sHBNFqKyWAIOoh6yVuLsRCZP/9YHWrfVuP1iwjoem7HmE+eh9z4I1Y/6lms86u2HY4Sc0jewo66Z4YY4ofKeasmEgU7n+nRAR+0phT+VDwsaffBfl9yxuOmRhKfK7UKDWBZFg0WkdL6zX0bPxeyfh2+s/jkSt2wCDuArL4kcnwShje+awH5omabVd8Dqn85U44ihw5y+pyjg== 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:28 +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:28 +0000 From: Yangtao Li To: Sylwester Nawrocki , Mauro Carvalho Chehab , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/11] media: fimc-core: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:58 +0800 Message-Id: <20230706101100.75654-10-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> 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: ad94f7d8-d1af-46d1-ac05-08db7e095cf3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eLdaTd4Yh8cXxxVNaWdr5u+Sks1Nw62o2IBsEZNgjhVpyK/JaTF2N6z8duLFdVzJvvjtpt1DNH9ccjQz4kLo8MOYfV/8zWF6n3xvkbf7caCTPNLUYoTY0XxyX2jbpSoqoPjQekiCK1lN/LNlOjwqlVNK8xk+W2tMWlKuOw0an4IsLbP7b2dja7j0R3jwqGg7ptsOzYQKOG71JiqNSgz5l8ZUMTtoBw3ue9SEODHdRRrcazMIaezhCdKNEazQVdlwi/8Ukxx1PioZd7v98eixpTc3McoK0r+IIpAfohvaTCxvEO69ZTW5kkWvzJVlS/lFja4ZxVDb7ufKtHlJiV4UGA8a6jNGLHQRPG3QdDAsrrjzTGi0PDZd+4AR7wNQKk2SEa7VsOBlKrchcKQemWbbE9a1tWm5dCfHBsWWg9NTzKYG4Rv5aiJW/A9+J19p/7mVkzX1zB3pUGs3/fvPsLZAA0O6s+gL3Hwkj31/jMjwRfXYZUkYdOhA2EOdG78LoX2WvzrFMjJ1YDZEvenU/1icSW3sscB3jg/rPmELl61aFuZ1d8mbadHlPl6WoUWfqFavFXNjm/NJtw6bguGtdbVf1G/BfJ3CBWnVZYs/LhaWMRa61gdO3zowuwQAsalW9IiI 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: DLWKJBOQ8Z9rLIWX4wtJtSLykrsawxY21rBZj+ZG65LUYIOe+iiNozyJq9T7qmWuVFDZXJkJM6GDFDh60h8emJZKG4viZX7YFdT6zwo9A2q8l/vqj+oE1ft4NAYRXChwaNPk0i52kNr5utmTjW4jWCGS3TebpYbs01mk7pTzOmc0ExDzCBCqh+lXII8kquWBNhvLSUTiEoYhzYTO3GXfZnjofIdN88UDNX0nggdVdZ15cIepr5P2VvSeXmDaVk7OHD1PVTmCoVLxRC9qjFJc8ykm9DBR3UyirfiV8Uzg6BwJlXsm4oOf7h672jVr0PyDKhcxP3QbFUvQ16WHqY/7WO//2CO0bbh4H6jH3DakhYXV18yp0hR9bYZQFzpYcsLj3QAEND5WoacW1kzx9NAafSKGM3CD7KHo00XfdFyobdnbQKQV14EwjKBix5xlDf6uWHhTlunPsM1fRvha8ZGwDjDaPDYbGH2uD+Svy6ECMxncgQC/RrdGo7a8sEoUnKXl/7iKAFdof3gAOvM4DJ7tG6zNvQhGdn/z3g0j5xgmPyLG3ToTG+bQqDmyfjtnOli+u/hbqV5xEr5Fs+PnnYvoHvf5NpNW6b7W1wlh38NKttIkcAGWSnJB18cTxG+aj7HcpqYxIx5lnS6lIv7eYhOR6jf7A/z96b6lxzbTSAeX+doUbvOEEz+qdmDozozc7fCh3yC99PX52DNgJH+0ckKxKlaml8qrpAbVq6EfD5eWeDI+e6gAAp3DRMrBFeRx+rtB1EdfmZSKU/Cj1ionGUq9oc9pqi10qNA0aJSUocR+SzkFZfXBM2P18zaamaWdO5PvNlM/wOLFut+faJY6/ygg6Vy70UhN0lXkDFLzOEkFcrlMyE0FhEVMterancvH/8ZrhBbIMjExuAJ1r1KUTpUEHeBzhK/sGLHLdggrgIn4P6gEfBQXVSrsIq3OXHTOq6ukGsRz8w22G/AbF4ifLX2hVLuhaeaUrfds9c4crgquhZTMGyGiu6H9IkND6TXioxqZoJApsr6oy/OwUnC38mzM/IIf1d5V50EasnB57Ije0/6wqmUzncpSRhzxntPdnQFFGUKsj9tDlAOnk/++T97cq/RGMrvNHJvTUkKcAYw0m+piHRCJ70cHt8vWPa9WPSiGN2qyzk1fJuwXLmaLdxfQrjF7cVQorZKka+9siXBpiuSU8KiKKOPrlG5Vvf7fyq81Bqni8Sdve0kA7NDNd2TUwTwgnV4qcw7eKSWidvr93qB5bRlqZ63AL8qyWipovVxPmvX0iiZBYTrSREZpmev+I7kluniwvqmUapWCGbfVN3VCfSMyKOOysb7SZ3lwo4Mm4PfwIVyCklfsAf184DOEvP6LNxTDoBg480mMxMkXGSJx6CjFvUxHGs94mUnofkKD6MydEbv9xbWWWfRIJk3r+1qzoR1QcsnQxx/WnjBcW7vdfbN9cCv07MiaSFg7LcP2SfC/EdiAgPWRNbRVIVlk1JVYws4GcsOJEIjX8z2QSU5J/JdvvlqOnxQZwt12ib4fmmeHdDBjQGAGwprhAOi+VPeuQzjy44kyOscDQsrt4T+vOKW/arZvfrjdXHmngNtj X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad94f7d8-d1af-46d1-ac05-08db7e095cf3 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:28.4389 (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: Z6SRPVszSCTu/dKtmIAO04+qB/X9mUEbVCi8u6+4zoA4AFXXZ1hYlAwO1R9Z47bkVgccr+mMD25YwotGQAZ2yA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770666681542605294?= X-GMAIL-MSGID: =?utf-8?q?1770666681542605294?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/media/platform/samsung/exynos4-is/fimc-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-core.c b/drivers/media/platform/samsung/exynos4-is/fimc-core.c index 976b4f747ad4..4e8059f100f5 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-core.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-core.c @@ -924,7 +924,6 @@ static int fimc_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; u32 lclk_freq = 0; struct fimc_dev *fimc; - struct resource *res; int ret = 0; int irq; @@ -961,8 +960,7 @@ static int fimc_probe(struct platform_device *pdev) return PTR_ERR(fimc->sysreg); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - fimc->regs = devm_ioremap_resource(dev, res); + fimc->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(fimc->regs)) return PTR_ERR(fimc->regs); From patchwork Thu Jul 6 10:10:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2454427vqx; Thu, 6 Jul 2023 03:28:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlEmVV6vun6BRbLvda+TKhPnwxeUeOIeyQbw6xNP74XP9IRJLcO0PHM59IUSV8cpzhChSh2n X-Received: by 2002:a9d:6c48:0:b0:6b7:4f42:370f with SMTP id g8-20020a9d6c48000000b006b74f42370fmr1438835otq.20.1688639311956; Thu, 06 Jul 2023 03:28:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688639311; cv=pass; d=google.com; s=arc-20160816; b=Q/+BnRGY5a4tFGsOgdadeD3Xbr0/1bHDWOZq8nCUPmgyQqKIKPOYWXy/9Ed1kk1c5a b8K5IkkGBz19j5hhjAhwGFxUVk+GaRIn1uCy3lWx4qtknfjN6fksLS/Rh+IBR+51azgI n95GADDxiCi0cGO09pErhCKwJUav5Xz0kYHyqGzqeSEdz0W3CXQk0rJJr6CVS5Ac3HCj pKK1w2OxoSyHW++P4JIV2qz0EISEFAi2N33WkYRAQqSRsQ5qz1DzLseOA2Yjx0OhEz3a jnq5dBHXs9cCYYDBNwCoUIYASWWQiziwhcR9x/bldVAt8dzTdcMyXfdJObd6gb+3Wlrh gQrw== 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=SAUcI02Yc7OXoIuTsiEMw4YZ/QUqDj0TAykDjwwpNhE=; fh=qT1IeUN2DSf0XsMZhLUbcvGUECtFprkgDHAU+OykdgQ=; b=i+RHDI9e4w2iI4MS1FFbDfWyZ8+WB+bHYo7+dao/ym5gCzrO9W0CiPtOUtg8VK1vVQ 1uXen3oT/yCZwIDidrB3lCe6QQsEM5gZx+JMku4EZN37g6TMwGT2KHMwp1rDBFd/+ZsC 92b3HX5ZdY0LZANMqwfDVqSfAzoOVKznv9sbB/P7JKFC9fFGg7nQTr85J9hDIN9Uq4RG RLpbNF4BF/8IZ7BoX1wU6QmzhJ4Zr2RE6mmzDJHuPDXVryaPXtw4yXVGiB1kXro7CuCg O9AJjzb/V+CnwmLt1SnOBYxiJcNOpRRwaVAlIYuCQxf6BsKqh23yUIaik46Cdg+tRyvs jU9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=KHgMTnid; 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 bv189-20020a632ec6000000b00553b546479esi1112227pgb.351.2023.07.06.03.28.19; Thu, 06 Jul 2023 03:28:31 -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=KHgMTnid; 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 S230436AbjGFKMs (ORCPT + 99 others); Thu, 6 Jul 2023 06:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232335AbjGFKMX (ORCPT ); Thu, 6 Jul 2023 06:12:23 -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 02A261AD; Thu, 6 Jul 2023 03:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nc5reNbdcEjEGUl1RsUrlra+zCeiPf4B9uqOLk6ZOCpsirV2QK8bONNMHFInMxECp8ZZJxyGwMUdvQyWUNZMcGEE5/8BXJMk/i3YQFO+3c69fI9DCeZDEasMs/tVY0N3MssWE96DzW0cHt3nYywYBBgBRj8FvUsnLkR64xQEUHcWDvAxRYKJzcPAvA/LaoOLBsPAjqvyGsWtjMSATQZB6hh+RdWw1Ht95eGRuTDzgu5sBTOukEABGdxiTGNP2nVVveCDw0rUXKxGo8GQViNkpyHqG2MX6/F3MvtDBtPJ32VAAh/Z+bln5/9qDHlxZ2aNao+BYpxPmP8cSKZrWi6psw== 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=SAUcI02Yc7OXoIuTsiEMw4YZ/QUqDj0TAykDjwwpNhE=; b=OeJy3aPM/F440SEw69DRNiCyemjGM0z9nvj7Tq1SGCJuxRuEqKzS8El3gqfBoxRZkSNUbE29wqfRMm3TEw8Ijrhc+TTBUQ373Dlo0FOdD1HatBN7kg0Ir8fd7V1rHW0NBtxtLCM8AycLcYPHWwuPBDX8n+NwfY1lX3CW6bpRJn+nBuQZs3/DDL82SE5gAWCTR87zu3e9lzT08yesLCMdpfZHej3p/umubQezbedWnXzeCFbfoYtmH4zPbnfTjeTZPjtZQAVa3lDFTDHk7Lbe+nJEGZXAlT46ecMGGSb4joHq5JZfmziV2D2+eWLvr0AhXHKK58OFUfvVPnS7N1CX4g== 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=SAUcI02Yc7OXoIuTsiEMw4YZ/QUqDj0TAykDjwwpNhE=; b=KHgMTnidlhlBa+TFzDrf2QZ5ML+ZHku+Cn3PyISIvLw6GmmFsgXafsGBQtTIkGb2JNDuY8zqpk7xGQ4GVDXMJp+vO2f+oZhtXgd6895qukj5nxBSoP/QY9B9w8i1rZ8n0O8+52wyVXawkvMyYnBAmeipI3DztxNdLbh3cc5tzlVGv6Baz0gXUBWflVooN62Wt+j1UTC7O+bmlGaISTSl7u8FHTGU/3cJD6t8Y/hAzmLWrV+fGbrpgud5ocezKyP4DDxBuIxDeGRYGnEyeBjZqQnxb0Wn0ufWZTE6TIYo2wF+zzBKB+5rkLnKNzdo9NwA/jddkQrMvDzv1wAwFVdl0Q== 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:30 +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:30 +0000 From: Yangtao Li To: Mauro Carvalho Chehab Cc: Yangtao Li , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/11] media: sh_vou: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 18:10:59 +0800 Message-Id: <20230706101100.75654-11-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> 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: a393bacd-6712-493d-6dd8-08db7e095de4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CSuhnAxBkd8BOkOvcIVKJRKOywbosLqx1wcZBux6ADuCNacsNBvJBJs+K+iqjOfwjJMGmy8c0VqP3ou9XZw8HmZARjSB3Kwnl7BxFm13tJaVZNehoahZfxtfb3mm7vmaHCVy+GUFlTzIDUNcF5qtkWJK47UxmnqprEYrAEI0NHHAFlB6Qc+1Ac8O3kHviti6cfO6c3xzfC2E5D1m3wY2UdbC/pZvOZSWcvmwyqYTD5my7Pclin75+Q4UBKpw1jL9sRGmq4KDPFrIW87N2xGzUiVHSgoErvpQGocm6ik0SGVQ0yRP3gdvRWCVJjGtf2phIk7F4ebvaKTBXb7aSQq9hDvliP0JacOBo+mh8XY/9S8XA5Ef/27TlSPEsslvkAiYLAmoyJEbasLQ5xjv+FEzlQgg7I49+GmQxDOAGCBk3+DjyjFIEsGXy55Wz3+ltaoyjHMHfY1mXt0LwjNY9n35Rxa3wtht/4RQ5YqLaRJWqNsjaV2qJlIJPB71xOgjPZxJK8pBlIXO4VGEF99GABcezfjkyjEw3Z/uAW2/4WvsB/Kd2jSxByL+xNsTC6MR8kEjJoks1Qa43yb48X8AQPIinZkVWQL0+wVs3+RRTS8lqY6uUXJvaZhflotDIZxDDgXP 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)(478600001)(6486002)(1076003)(6666004)(52116002)(186003)(5660300002)(38100700002)(26005)(83380400001)(316002)(38350700002)(4326008)(6916009)(66476007)(66946007)(36756003)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PJThTOQ6tPeaBY5DOLWxcqeU4r7U39C+VKPK6fpB5cjXoj/ksWZqsBMw5xI2A9ZG7f1v3KB+mcVmi5+FqpW1w8qGMY2+KImvdmIkK8fkewd4UiM7ad5q9jBj/4IxhwN7wXIWrFlkjZBUTIdEd/bhC5uiSqMAMzSi6NgTEphidjSZ+MiAmGZZ8ovIvDVag8kWF3w6bBU/dAH+htpSI74ps7taAiBJk8EeDTRqsmC6ibInbh5XEfVLLi9uE1zq0Asuq6A0DNqMVUjhP+MlVEZGcQOMho1XAUXR/fNNaDVE4GgnAegvpWabbbVHzvR1Dyl6NEnu7u4ZjoPg8uhx4bekGKWJCTXzU7UMNCTPZ6fAWSVHQnH7a79HOaozyZ6iyjGVUZ9ptxhF60OkygoJ7aiWOiy79hSY1V07Tr4Im8uhcPu3gfleoQEWwwF/lb3l3ylSdQ/0t4I1C7D0etM++NuPGgh2/dTem4rDc/96YA4eazjGfY3qj1Ez7KPwN1kvV/Ux29DYLIsfPAYUi+0XZ7YqKM3ptZsJj2YwniUnOYPv+5AGxkGa3mHUCmnrIVWtqj4TI6Ous+AP4ZcdA2AxYXXuBYrUIiLCYKYLCv9fVac4lh1ivWZg2jNl236OEIFynPn/NVuuz+uQ4OPWV2TcGwK/Sh9M7ulqJIPuTxZJECyqquhcPaaF1r6WR3ae5nmrNcJGyZd2b7jcXLIroBtDg7kKEvCJRN/E67peOo2zAfndrx9YJLJeNoqsEQTGUkqA/+/VwwGyv11+YXGA8OHSezMWxUg8ChJkc2wNZ7wjVE6q1PsvSl0DP4NVTezyKZZ5G4yReb9Yd4vej82cF+qNXE5G48GmeMkfnBXjAvazAa0HrRmIEmoJcMRX98+I5Vk22orqmr4aZ9c4/LCRDeYffm00ZcGNPmEKIBZvcnAi8O9a5bn6/3PCzPHd1Yy96cA1o1G6vUzrZ09mWZ2fN3N4+DQpam5V7XNAzk0WZUV5j4MwJfqlDiX1ojlROOn/upI8j1VEy7XvFxQl2QHbzUnNe7zR2lhofkQ2hFiXLMcYyod7vN+ihXto4nHrCGRqJ3NDPkyNhx9S7y1McrKDCpBOo7dsYehWL2cBHhwn9I0oUzeCahfpEsxlXDV7VBIn0eJaOV0VdTKp/Xv52BdLwd8jPo/sYHxcHFVyQ0AhxwbQFbgpgXh1uTeOA6L6ZwrHGQEhku77wpmo0vVEqrFezA2b8Of81lzK9QZFlnLhC8licnhonUgHeQDnE27pgz4+jRZDbtBqNSK0rH3JkkkggGJ4JBfPczYg4jGJDI7G9OCKxQ9A3jLXEvffQ7BMdLzv7OM9NRuf9QR2zWTi94i4D1Y7sWJmKvncITzTXtl6NxGh3NU+6UZMraHZ19Sp7oxCtwpILUeoD/ZvSnfLcY5RhFZsfeMXTs5pHNZxoAwdGGU2C3FlUuwDFyQodt946ue9QA5d8oZGX8qcLK7L9t77bSJVf+YUpd5pfKnMt2qe8cvKvETrHNM5pqzjMrerMWZClZmLRSLMQku6INY/eNkAI4DwPeW5BkIdQzT+thdM7091zM5JNEsZzUnoNcM2H7Q0t4eomDjd X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a393bacd-6712-493d-6dd8-08db7e095de4 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:29.9540 (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: EUL+4zIW4Ou1AZQIYJs2OXVMrXN1NadREBep/e2z/vCN+Sm4UrZvX6iF06hbQTr1u3cP9pY571fKyCoTVu4IWg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770666655476986081?= X-GMAIL-MSGID: =?utf-8?q?1770666655476986081?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/media/platform/renesas/sh_vou.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/renesas/sh_vou.c b/drivers/media/platform/renesas/sh_vou.c index 8fe3272a541f..f792aedc9d82 100644 --- a/drivers/media/platform/renesas/sh_vou.c +++ b/drivers/media/platform/renesas/sh_vou.c @@ -1223,19 +1223,19 @@ static int sh_vou_probe(struct platform_device *pdev) struct i2c_adapter *i2c_adap; struct video_device *vdev; struct sh_vou_device *vou_dev; - struct resource *reg_res; struct v4l2_subdev *subdev; struct vb2_queue *q; int irq, ret; - reg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - irq = platform_get_irq(pdev, 0); - - if (!vou_pdata || !reg_res || irq <= 0) { + if (!vou_pdata) { dev_err(&pdev->dev, "Insufficient VOU platform information.\n"); return -ENODEV; } + irq = platform_get_irq(pdev, 0); + if (irq < 0) + return irq; + vou_dev = devm_kzalloc(&pdev->dev, sizeof(*vou_dev), GFP_KERNEL); if (!vou_dev) return -ENOMEM; @@ -1264,7 +1264,7 @@ static int sh_vou_probe(struct platform_device *pdev) pix->sizeimage = VOU_MAX_IMAGE_WIDTH * 2 * 480; pix->colorspace = V4L2_COLORSPACE_SMPTE170M; - vou_dev->base = devm_ioremap_resource(&pdev->dev, reg_res); + vou_dev->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(vou_dev->base)) return PTR_ERR(vou_dev->base);