Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1706888pxb; Fri, 1 Apr 2022 23:59:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9dHrD4HmbOmw4u3Q4TmlS/anlmPYvKwzGU4Bx/uPxQ8DqtwKE3tyySDHF6KJmpLFuN7BN X-Received: by 2002:a17:902:da91:b0:153:cc84:f13f with SMTP id j17-20020a170902da9100b00153cc84f13fmr49647084plx.38.1648882789196; Fri, 01 Apr 2022 23:59:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648882789; cv=pass; d=google.com; s=arc-20160816; b=oziMrzp/jsQyQJmSsQ6gsR68EtPvz4FMyBZTrItR4ea/SqPH6xED9T8AFs8+xyV5ME d+ThRPL4GVXJ9CpeAZkB5Ovl29zlTrcaTztWTE011Wvw9IrZfKNmj329D4aN9fy+OhZq Y7ngx53vOMHBr7rjEL4bAxWF4ZNWhzhUArlKYt+W0soL40RlKNeUmjW7Ue9Jrxe4S+BB culJjiCPKvyoLYCoDteFER8HSl4Ysvb0wQ7kBH7i5dOsmhAgRhdde8SQ7ScbBQwapcS/ ocfT5uRjUa6rQNbeRnuyGgjxsnEYsJ/ucHdCIRimCJz3uqzlsLeQkyDuy3c5E6Kxtk5D T3CA== 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=v7TwW0iIZbjcAXIVc/N0IvnmdRWcq09kzIYPajxVeTA=; b=Xr6/KnjpJ1HuvnUvNOMSCfuZsfrw4oeNCC1c6ApKmIUA+JYWVA1QpMYhpIwgnUZAkU KybV8jWGaQkX9jxegtX+57BoNgUKEcE20fpNVQbvp2ZwFddZZArMjhQrRFZyAvnzNY+s ZRMAWp/bry3YOeHhs2BGgbILETUn8gLLVaM7vBX9zrBf65jl//3O/96nucJm9iXeHY35 gzHfDKfrw13ZTCU1Dv48X0Y0gDO7wmmGCginFt+E7EFRDGGwH5DkEv6eNnBNgp+CPx9K ZgqhFp9LU+4pJI07rit9R55VDUifqTrObXJbcMhhECuFHUvFGDswuee1ekgFwo0zS6mt l+6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=E+8ndxFx; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a170902ea5000b00153b2d16652si3916778plg.602.2022.04.01.23.59.35; Fri, 01 Apr 2022 23:59:49 -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=@nxp.com header.s=selector2 header.b=E+8ndxFx; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243898AbiDAB6j (ORCPT + 99 others); Thu, 31 Mar 2022 21:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233627AbiDAB6g (ORCPT ); Thu, 31 Mar 2022 21:58:36 -0400 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00058.outbound.protection.outlook.com [40.107.0.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D19B258462 for ; Thu, 31 Mar 2022 18:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E1fPkXveBBoB7y1CMfeWzp4h+CqU0DlBHTB6Z2KbUvTnvZU7vIXpFVBBBuHB9S/DNHOW0d3l8SwSGclSiyTqBxMM3LN79P/4nr+koMnI9IQhPEtXnnFHxKQ0gHaIpX3Hng1hPDW4MIwqXN3eSqZcoUw2cexlH+ASI+tQYJtQGsq7yBIR9FcIv7DyOOWPia3K/VG8OuR9JrGHMmNHW7xAuV93x+7mnCInSOUskJaggittk8ELUpWyN+MJlxgT6+JRRsGl3syPY0uhAyYWr1Z7Vrb+AxlyUZVXR0sYq4G1tHFU3y/tJCe3Vl4CRtAvybDfq7TPEO54sbAB/W36oUUOew== 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=v7TwW0iIZbjcAXIVc/N0IvnmdRWcq09kzIYPajxVeTA=; b=Xb8dN1DSS5d46Mqx0UDa6JOCQ+TS8Ckt3NV3HKzaQaq5uNIu8A4qYa7pDWIo2icUR3yKq5loHd8tjNeB5wnGx+2tDAp7ECmG0uJc/h6sgEVuwXTyPCkucD3Xh/fJkLg8Nv4jNUc+ahp1aX+UfV9XkMy7/3yN7xAQcTxVIe7Touj9wyo6pOZmU+5enA2utmrk5bTGFSv7nM9I2aF5R8/PSXKModiNLUmDlpu97ZPObpwQ7JxscG/TJFQIhH9oMKXNqDSPdm48L14Mosws4ACM4dKtWNVxVyxRRFCDoMwVUwbCKO6lulK0Zh6O79leNiErptxL3W1JEPuPBAdzD1NX2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v7TwW0iIZbjcAXIVc/N0IvnmdRWcq09kzIYPajxVeTA=; b=E+8ndxFxEnu/xcz3lZFvz9HqVssCLxP09aSMz/yOWwxTWhze7QjDPz1iZF4d1rTZsFsw5XpPT+l63oQTJmMkC97D7giGiyNYGvnraGVX5ySH3a3NxkNGT3LhY8CUNtgYioUw0CrhonVJF83XDEyUNIZ19Jed2KiPp2md6zkffa4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by AM5PR04MB2979.eurprd04.prod.outlook.com (2603:10a6:206:9::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.21; Fri, 1 Apr 2022 01:56:46 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::b09c:8ffe:8e02:7387]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::b09c:8ffe:8e02:7387%9]) with mapi id 15.20.5123.025; Fri, 1 Apr 2022 01:56:46 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Robert Foss , =?UTF-8?q?Guido=20G=C3=BCnther?= , Jagan Teki , NXP Linux Team Subject: [PATCH] drm/bridge: nwl-dsi: Drop the drm_of_panel_bridge_remove() function call Date: Fri, 1 Apr 2022 09:58:28 +0800 Message-Id: <20220401015828.2959505-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR04CA0196.apcprd04.prod.outlook.com (2603:1096:4:14::34) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2b82abea-23af-46bc-4d5a-08da1382e041 X-MS-TrafficTypeDiagnostic: AM5PR04MB2979:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vx/y4MpnrtsMo+ViVFprZqjVp7iAUGK+OqioU4trvVi5vU7s4uYnQHtPF5AmrppasvD4Kc5m8BUlO/DU21OtZvjpOMx1eBLUMgmkv1aD8oRucoyub+QUHIBK90H2lJhXsDm9DcAM/P9KKXhNU6RKmuxGv7CFGkIvQAo5ICJoQ27P1bFBMeW7N3Z+0NbvFR1gltKqIAFDgpjuHVVN2sW0nHpxPwKJkWjfKEShMyZ3cHSInsdaNr2d8QqCbWme8juCfl28Dh8NFHpmP72G2N5bonW+OWmJTXdMyMChmYm0s1SllqwDpkFrgi8Xk12DxyFGSyomROcmFthLyrKSxU7tv7WBjTrhCf4NMAuKNUi39b8mXPCLGaB/M8FaPdNfHZ7tUn9Tg4ID54aAYpVc51Tq/m6ADJhyLkwHT7sZsF4BnGLRaFsVuBZkKVQfN0Ohwgn3LmRKy+2Xz5xECZ6AyRZtC0bQNTr6AEW84FV6dFxmRNGpEqvlDgqwAorvAxt0f//3Xeg8omZFIJXtyCOsQsSFTQJ8WHWdKPKlhpD2sgpj9IxSScbbhb7g7Os8wgKNNtKwNk8Wm/nHtKGimPjjWJQE4ZE01WWbG6Vi/wdoGKG0faLafBKI17Parynn5aOYPHxWQKZyPL9peG5iUw3/TRfqavxOX0uEYB2t8j7SaKSgr/YIR+vilM5qVyTWxZtFtI+7a5dUvtaKPJPUB4CLgg6qYA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(1076003)(2616005)(186003)(8936002)(36756003)(6512007)(2906002)(26005)(83380400001)(86362001)(5660300002)(52116002)(316002)(54906003)(38100700002)(66946007)(4326008)(6506007)(6666004)(66556008)(66476007)(38350700002)(6486002)(8676002)(508600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R1BQQkRKejNoWC9jV2lXeUpSTHNxTmsvTzdYbWNmYmE3T0ZjakpCeWl1aTdJ?= =?utf-8?B?dEt3MHlmNTFEMHhxdDlXMGVuVDhRUnNOU25Wb2ZiNkF0ZnhZeW5RalFjQlBH?= =?utf-8?B?cjkzeFBXVHVYemt4U2c2S1pnQm13S05WMkRGLzRRdEZiMERnckhWdFdHampi?= =?utf-8?B?T2orK3NjcnhWOWZpWThGdmdXb0ZxYmxTZDhxRmZPRkZOc0RKcUhLQ3BTeXJ6?= =?utf-8?B?Z2JwRUJ1ajJVeUs0Z2NBWWV0Z1VVd0VzVXhCMU93UUZBUlgzV3JZM3N2bGlD?= =?utf-8?B?QzVkWnpUK29sb2o3ekdySmpRVzErOWlpeksrWUg0blNqclBjZW43clRRWUxC?= =?utf-8?B?UVZTZnRaNWpyVS9QczA1eEd4SjRLU1RxM2xCYndML3RMZTBXcWlsTlNuWVY1?= =?utf-8?B?Snd5M2R0YkZFdTNVU0JJdkhDNUdsdTZSazBKdmF2YTBJZ3l4cFU5TVZHalVs?= =?utf-8?B?Ym5FYm1mNHZ1SUlLeHhuNkRRU0t1ekR5UDVGRkR1QVdlSERpdHhJUE5Ma0Fy?= =?utf-8?B?T3ZxTHdZWEtvc3FqTkRPQVhPNEppMDY5MHRIUUt1Q0V0Qno2WEhsTDNNS1NC?= =?utf-8?B?d3c4bW0wcU1hQ2t6cDNsS3ZMbTRVeGhXTi91dDh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S-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2022 01:56:45.9148 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vk5k27pqoYPMzRYw+RW63tBivGDRbqbKQi+7dr7bOcTdNQ/sRY4p5fXzky+yv5GZGCdPVwaUSV+oRe0PnGgBCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB2979 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_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 Since this driver has been changed to use the resource managed devm_drm_of_get_bridge() to get bridge from ->attach(), it's unnecessary to call drm_of_panel_bridge_remove() to remove the bridge from ->detach(). So, let's drop the drm_of_panel_bridge_remove() function call. As nwl_dsi_bridge_detach() only calls drm_of_panel_bridge_remove(), it can also be dropped. Cc: Robert Foss Cc: Guido Günther Cc: Jagan Teki Cc: NXP Linux Team Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/nwl-dsi.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index a549da5b3f93..47859d4506b4 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -919,12 +919,6 @@ static int nwl_dsi_bridge_attach(struct drm_bridge *bridge, return drm_bridge_attach(bridge->encoder, panel_bridge, bridge, flags); } -static void nwl_dsi_bridge_detach(struct drm_bridge *bridge) -{ struct nwl_dsi *dsi = bridge_to_dsi(bridge); - - drm_of_panel_bridge_remove(dsi->dev->of_node, 1, 0); -} - static u32 *nwl_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge, struct drm_bridge_state *bridge_state, struct drm_crtc_state *crtc_state, @@ -970,7 +964,6 @@ static const struct drm_bridge_funcs nwl_dsi_bridge_funcs = { .mode_set = nwl_dsi_bridge_mode_set, .mode_valid = nwl_dsi_bridge_mode_valid, .attach = nwl_dsi_bridge_attach, - .detach = nwl_dsi_bridge_detach, }; static int nwl_dsi_parse_dt(struct nwl_dsi *dsi) -- 2.25.1