Message ID | 20230707072034.48977-2-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3081951vqx; Fri, 7 Jul 2023 00:22:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlENnM5L6ff/SkVRw4ygJ/GfaFttqxvYgvmRr1QGljocI3969IS6t49QWOPv+EuuBKFNrPvE X-Received: by 2002:a05:6358:2905:b0:133:a8e:6feb with SMTP id y5-20020a056358290500b001330a8e6febmr5634428rwb.12.1688714560840; Fri, 07 Jul 2023 00:22:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688714560; cv=pass; d=google.com; s=arc-20160816; b=vOzC/Td5uqy7hEV+vMOFZT5BxqMcoNQlG1iW9BMHNGkd/BlkJCbkRDOxv1N8Rjty7o z+4eifLOBpLDFd/1CKXzCurLKzRhJ3t4GsjmqKE+2lZVzKFCQiL88ZZfRHLTYeuXHD1P jJhlqFFLprdpca7Nl7dXgLb0n798rfs2JwjVEVyiKd2NsKFbucXC6viRK8NiV1EM3lMa 6cPCD6ostsYV9h/Wx9VqMgMIAXV3ECIqtjXbndWefD14ji0Z5o9sMQQSqYgoQeUXjpni Iwklmagw8gawaxqrdJiAKOnV570IhmlRsmoskgxT/IfiaoVSa8Tt2QeGCH5QleqJ9f5V 1WEw== 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=kQ1vFl317+eY3frrFY+OfM+saV0SG1asyXCxsk6CahM=; fh=OkhKJqwgmok9Uu1AW5HLWSzylSfBluM76Bb81dugc3E=; b=DbKGnt8BvkVSTvmzLnz5qGZExWPTz9O1Xn/rbr/oTFIFUuifgYCY1BmKhzY2slup9z zGKTn4yfenev3Atk/bOatXU/6ksCKilaFUJdKZBEpS5CRVDgBKdjrrPuc501rGGiLY1T Fa97ngPy95PJcV5aVQ1O9m3eCVATUvyHUe1Vf1EvOplUYgaL4q5L3iGQpKcUj0vwKkHB 3y7skOxC0HRifWUtjtw2qzc8wvg3+b8mnKXCKGFxbT7CgTHxsjiuU6jLtXhr4bUxaxVc Fdpk03UuqOM4DYNtro5tlUIZmeCu/O+NbwxfR61qLS1T4hzBxXBy3KOhGWitFPHYdmQD bmEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=USjDjBVb; 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 h12-20020a63120c000000b0054fd504e80asi3245999pgl.542.2023.07.07.00.22.28; Fri, 07 Jul 2023 00:22:40 -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=USjDjBVb; 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 S231954AbjGGHU5 (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 7 Jul 2023 03:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbjGGHUy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jul 2023 03:20:54 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E04AE1FDD for <linux-kernel@vger.kernel.org>; Fri, 7 Jul 2023 00:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gW4O0qdBrudZB0VWABEvJ1rvdicigp143R1RuDCTTJcdTvegGaxDttQC1HtZHqczwQaYMf+eTVip2QFk9lmPyyOiF8P8n56vJQnDegU2APAF+Q+EebuUhUC1Vnopocd+232+gO8Vv9E3VnPUYLKaobXuKhvKduT7KMxPwQJaLYx6avoK5h95tUqp2YP0wL9MkFMsR/VmCYKsZrfLpJrpSmyx1JIqTRDYnV18iaZADDNW2WmcNOQX8FHj++Uv8S7y8o7mtId10rkjDdOPHEEVmUBDuo7khEaSUsjjqvf6CF783w2Q94DF87TPdUETtdWjpLPdSW9qvGrTUTx3GxXMOg== 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=kQ1vFl317+eY3frrFY+OfM+saV0SG1asyXCxsk6CahM=; b=Dm6udbTrG0+6qSj/6Rgize0kYHmVsT0htORkpS+MoDpQqM9JmpH9dUBfUNgjoso5/FwYV+Um/yLvP7C6wmkLPduV2K+8DCjcc4mRZMS7NVwIeOv7s/vXG0vz9UjgKDFB0aIH6rIWsFF8mKtswahlgXE7HXQr9DUFlnpN9mSsRlU0UiqQsUPShv4+4nrNvtqms/POjgOSjQeI3g+L7tw7MjYzDbH23Vwl3EgoTCPANWTLYOewY/aKhbhTLJbIo5SQUu2KMNomsWlFxUPP4vXGMu+rvANucZtoACOeQudRp5dDtS6HHmPmZhx/IypnnwnotEXq5gtNyIPIVE0UJYzT6A== 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=kQ1vFl317+eY3frrFY+OfM+saV0SG1asyXCxsk6CahM=; b=USjDjBVbNkO+6jp2wObQT7RTREjlI2oRv1ZeHPlqG27B5+ue4tNKMxa3Af9yN4IAXO6d4PAoawV+CEq8Ri+gREh6ybTNGY/taGClHN8tAjsjnfh+4YeOJw/f6LFI0sjytZNBcTEOiqlTCXknsJBUP8oaUDvK9HvnWTIymXMSGKKd0QTbX/1n0wuSDBxt8yo6i8iMR/n5CsEaoz6BNd6OVdYjJ1CE+dEcu7UMTIxRNwihmRonNEpj3cxK2BTZCslwgnTtEmoJK9+O25vGiedKd4ZSemwQ3LBX9lZ0PN5J4hT1EpPsRKr/uPi/4E/sY9GQvQmlaXFFovL/OaCCE18fAg== 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 JH0PR06MB6704.apcprd06.prod.outlook.com (2603:1096:990:37::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 07:20:47 +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.025; Fri, 7 Jul 2023 07:20:47 +0000 From: Yangtao Li <frank.li@vivo.com> To: Philipp Zabel <p.zabel@pengutronix.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/18] gpu: ipu-v3: pre: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:18 +0800 Message-Id: <20230707072034.48977-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707072034.48977-1-frank.li@vivo.com> References: <20230707072034.48977-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0129.apcprd01.prod.exchangelabs.com (2603:1096:4:40::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_|JH0PR06MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: dada64f4-1371-4c9f-a56d-08db7ebaaf44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /naE5KPQWoPrc21t+5tVuSCAqj12xR6KT17WJPoVy1YHQv5ecIirxZtdyyRdkZrQiPFnofWOY4pHHXYlcmywp+rBIHPGR8LezoQ0HBBVxA9/DpzrHbvWFWitX8Zui+pHBBv4GwH2urlqwXDjVNZe/+jGbq86u0dBsR4lFhFsYgQb/pmnE66nf0H4p5Jl8xG2+0vaDNSIfXLqW8RJuf+5v/5+dMiNeyrUsv/yzuggiRDpuXRNSClbSNhfjIM8K4gARVDeC5Lvr5TBNFK1tPdoqQMftxzk1yTXNf+EkY6rM4UalUL/G76auenv6ZHMOzWFohww++jaopln8lfhGFeuZNZrNvZ28CL/cHf6fE1mTdPajJJupTyofHVweOGFM4WbW6YsdSBjQjL16BF4qn3HgTvM6nzO2fatEhKbPSk+cI+cJ9xEiC59Ug5CMiYzsrq+RAxgwWrALrkFOxlJ4PnO2eJTf40G0Xkz/S1gzcktbu/2o0qYrUZQRcOXCTUiTuAY4LL/ji9fmUIGyOxqqmXCMp+tL9ONIYY173DCCxjrq5R3A+ZX6wk3XdoDdlXGVt8lwHrDVZVrcxB0AiYt1Q3lfViY8B3rKLEi1N8pg32SRXnwT+JMlc9LnGbLTnKLY5T+ 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)(136003)(396003)(366004)(39860400002)(346002)(376002)(451199021)(8936002)(8676002)(41300700001)(4744005)(2906002)(316002)(478600001)(6666004)(110136005)(6512007)(52116002)(6486002)(66946007)(66556008)(4326008)(66476007)(38350700002)(38100700002)(5660300002)(2616005)(83380400001)(186003)(86362001)(36756003)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0WC8alMZqZVaiuOKQWINetOvL7tzppzosIJod4/iXMWzt8Yiwmr2aFzwjsQgE95QcwJGSBXkuLYIqpHBRslQFoI6KCY7HKyU2WuC57KWz99pTPcexCSllEn7XSHIC2zWa3laG7LRsICjeY2JcFSuoohmqxGDpZS7l0UMXu8W88mp/SHyr24H8rbDqDAkfTcRPWS6KfiY2G/o6xVl+y75bykicVmYcEGsLrqHuQseUMv6078Ff9H++bU993zr9ZtniTYSulFcTo4PPuPaf6bbwPNb2C692AhX0NsmyW6rN2eiu1n8DBZAZnLksbv+aX3C1jEDHmJHaC0B80xz4NUrYAOOvDg16xQsOtUNRodLbgngK3zNMLZHmb+SiNDAhFJEfWX6DRyxC7qzI9OS3vFyOma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ANUb7913e0R+TfyhaQzcGqo/4RaGthDIWs801WQMvq1eEmKeo4Jia45I0VjPUVVcJ4TNndn3EESYxzhz7AF9gE/mIkw2v1Inm/QX7Z8WF0Vc X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dada64f4-1371-4c9f-a56d-08db7ebaaf44 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 07:20:47.4576 (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: IX0OpebiIjHEF46mYCy6rJtsI6FVHMwaNEaHQQMZPYOT90qaThXtAGtcUv+QKBSWvh/7CHzCw6SQ9ltOGKh3YA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6704 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, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770745559215150179?= X-GMAIL-MSGID: =?utf-8?q?1770745559215150179?= |
Series |
[01/18] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 7:20 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/gpu/ipu-v3/ipu-pre.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On Fr, 2023-07-07 at 15:20 +0800, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> regards Philipp
diff --git a/drivers/gpu/ipu-v3/ipu-pre.c b/drivers/gpu/ipu-v3/ipu-pre.c index ad82c9e0252f..aef984a43190 100644 --- a/drivers/gpu/ipu-v3/ipu-pre.c +++ b/drivers/gpu/ipu-v3/ipu-pre.c @@ -271,15 +271,13 @@ u32 ipu_pre_get_baddr(struct ipu_pre *pre) static int ipu_pre_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ipu_pre *pre; pre = devm_kzalloc(dev, sizeof(*pre), GFP_KERNEL); if (!pre) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pre->regs = devm_ioremap_resource(&pdev->dev, res); + pre->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pre->regs)) return PTR_ERR(pre->regs);