From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63B6BC4332F for ; Thu, 22 Dec 2022 17:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2CGemItJRxuv1ue78GwyxCzMfrNa2WrqR9V3xHawrMw=; b=uTED8GWKjy7/7o nyqJ//7jrOKbIS31e2qmle9qdtvhDYjsFF1KAQKTrhMXLXlgwJA9fYxlZWY2DeEQu2aoiVjQMITZP ZTyy+vhgFRqq7EugWg49mbk5uPjAy2qtmY6Y6BUaVVN6kAM2aTSnx4c62/+TvRn73VhYICdOiEU6a UJDaRdjPnf4ppY0Zp8Hau6XlArHtE3TXCTajwnRqDjInlGsfLf75XgJLMG3gfFLMzvqQLCeJOvBi4 bZrlY2wpPU6CDSWC7e2yKq14iFK2oHws6EddL129S+ja64KyzMLHkGksEWUVn4m67UYWvU0kqI3dt w9mPpSEhO1RcvPCfH1og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8Plp-00FMEh-0U; Thu, 22 Dec 2022 17:54:17 +0000 Received: from msg-1.mailo.com ([213.182.54.11]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8PlS-00FM5e-3n for linux-arm-kernel@lists.infradead.org; Thu, 22 Dec 2022 17:53:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1671731603; bh=3ETUOeCPDi1oDHbMKQ5C1PSdaUw3QrTKHENp4S5ajiM=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=cvYzXywCymULk+YsuPvxpb898nH8RiwyTXIFjPk9zzK3I6a87sxAdOor9VRFQprxv l/BpxW03KrRViffdEBJ+oaot4ixzo+LNBtZQ3sORQY9wq4SpHres45kKxV60OGoVx5 GR1JwIGhQtmBmfqPXwEZMoYq+qhnOz/3S1u+4d2k= Received: by b-3.in.mailobj.net [192.168.90.13] with ESMTP via ip-206.mailobj.net [213.182.55.206] Thu, 22 Dec 2022 18:53:23 +0100 (CET) X-EA-Auth: FGv2lU2fXVqh2P8ZF+Ku/esRLcz4/4p1S8LbuB3SgzgTJnrloxCZsJzlsnwCgWTiSeSxOLC1oZbxRHCOTFtWQtXv9dUeRJF0 Date: Thu, 22 Dec 2022 23:23:16 +0530 From: Deepak R Varma To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar , Praveen Kumar , drv@mailo.com Subject: [PATCH] soc: imx: imx93-pd: No need to set device_driver owner Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221222_095354_625733_F88E9F7C X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There is no need to exclusively set the .owner member of the struct device_driver when defining the platform_driver struct. The Linux core takes care of setting the .owner member as part of the call to module_platform_driver() helper function. Issue identified using the platform_no_drv_owner.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- Note: Proposed change compile tested only using ARM64 defconfig. drivers/soc/imx/imx93-pd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/imx/imx93-pd.c b/drivers/soc/imx/imx93-pd.c index 4d235c8c4924..832deeed8fd6 100644 --- a/drivers/soc/imx/imx93-pd.c +++ b/drivers/soc/imx/imx93-pd.c @@ -164,7 +164,6 @@ MODULE_DEVICE_TABLE(of, imx93_pd_ids); static struct platform_driver imx93_power_domain_driver = { .driver = { .name = "imx93_power_domain", - .owner = THIS_MODULE, .of_match_table = imx93_pd_ids, }, .probe = imx93_pd_probe, -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel