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 17D61C4332F for ; Thu, 22 Dec 2022 17:58:41 +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=/yPCyTHTl307L2bo8FdcxumA/rtBrPYjPlbFPUsVLPQ=; b=SVKI/6TwUbHOV2 I9JIdMD3Ie5RZVzKvbxzIDc73PXGxhVO9xv9k7Gbju1O5v6CDKVciUQsO81CMbQMHJeYmdtTsTOf5 A98z2iXIx8XRxEaSSVPkQPRmIonn2AioB14t11O872NUHYX8JUpVPzFRLmVbMKeWuef99I8m2NiRE qXsdTw0gtOqGcXOukDcB2qrQeYceJZC9P0Rnyamt8QeCF8mxm3vJ/og2SPBjxTdPLlpDCrwkAE5y8 rkZ+osJ4ZStO5W9H4qB8eby6mDhHrEEoEe8bA8vBBXuIOzoRZwUiEmlbdzuoIOc5qHlpyJSpx/iLx VMLtYK2b1FoHu3q3l+nQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8Pp5-00FNHj-P7; Thu, 22 Dec 2022 17:57:39 +0000 Received: from msg-2.mailo.com ([213.182.54.12]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8Por-00FNBQ-A6 for linux-arm-kernel@lists.infradead.org; Thu, 22 Dec 2022 17:57:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1671731828; bh=NbZXBCQ0zuhpbO8iSD6DAf5s4MnrYqLPWQgkI/6U3r4=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=mLkmWdPvr0CzcOgsrMhuOUIv5Xb/fypLes+qg6+S/5UM9sRkkc5LZVQCK5yAUQH9j k+ZKPnAJtnsvfM3+483wYq9rKG4AIweCfvINNhBULpDAvVVFe8yrWMQ3fAC9djj9Pk RbM5F+UX0b3zxsO+zEfaAAjLWcs2A76G7tu1Qsfw= Received: by b-6.in.mailobj.net [192.168.90.16] with ESMTP via ip-206.mailobj.net [213.182.55.206] Thu, 22 Dec 2022 18:57:08 +0100 (CET) X-EA-Auth: l91B3F18YcPJd6Louve5iAXX9QktyPZPCYEWdx+DnPtWi3EQrZwJHQgTpgTxZxXDkyCKjiYOoE7gaI9WqLUXF1EWbWVsLl2N Date: Thu, 22 Dec 2022 23:27:03 +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-src: 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_095725_501063_F48235A2 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-src.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/imx/imx93-src.c b/drivers/soc/imx/imx93-src.c index 4d74921cae0f..f1c2e22d5cbd 100644 --- a/drivers/soc/imx/imx93-src.c +++ b/drivers/soc/imx/imx93-src.c @@ -21,7 +21,6 @@ MODULE_DEVICE_TABLE(of, imx93_src_ids); static struct platform_driver imx93_src_driver = { .driver = { .name = "imx93_src", - .owner = THIS_MODULE, .of_match_table = imx93_src_ids, }, .probe = imx93_src_probe, -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel