From patchwork Thu Dec 22 17:57:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 35894 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp93550wrn; Thu, 22 Dec 2022 10:10:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXsfjeM5og6y7nBOw4/y3WkZpavTsDEZl1W5RoxEKMDGlvacx+gCgTPtT3EMOtqv6u2U+Q+m X-Received: by 2002:a17:906:1194:b0:83d:939d:7d9a with SMTP id n20-20020a170906119400b0083d939d7d9amr5174947eja.65.1671732605993; Thu, 22 Dec 2022 10:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671732605; cv=none; d=google.com; s=arc-20160816; b=y3Y0mgZDB8KgnvkiASDfzxci6cGXt3msLj2bOQvarkRUXg6QkmtLDf5fBzZeOojcKX VKNyQSYYoCmJYnlyjGxSpY2t7c0CPqxFHqHxLeGGa5RMynIOahRCTSuCdEG98/O+UIxN gUSxFK1Vm+VlDAIjw68a/uuDGuQPj5QGTMpIUySXUVrpZm8844NleSTdm/G+qd++yb9o 1SyutalzUBloqueXKGG6KVu/NXtlHmOCoS1V7VZSnsx2Q+OV8hIHs9BI1lrbmASz5vkL 51rDZC3Y3/C3E+J69Y71F2vBWOg/C3R0Yb/nKIUY/bYTmEdhFG/JmUfw6SP5yHrkd6Wm JOvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=WgskiSVboKjA1kYJ+156Wgk2mywY3NniCktsjRxGahg=; b=aNtM2V0WCTfkw3zg70d6lYPIXiLEg9PPx3WIk5SIfE7Rfb16bYL1QnGFAmVy6ocAdM fDa2J9zQq7eDplHVcPSL24Da3xI5s/vwOFbRqRwq0DpKMQ7UsiUsgJu5XTU0T71afjzW GO1hMK3rQ87Cj+fE831xdgt1Orlf+rIf6q6Sla0fKCAghkSWW+6Snz4Dk1RTwAuAKHkp nE5Ma+8U1r98Jce0VaNXGVK6ZQnQUr3GgMFo4aG8vG4aJ50ZWFb754y50ob7fnBcQH/q ZjvNH82SrT6UyDKEHghxT5fjU7W+iHj2Nvll2fuwreBde8vFcOzBtDhvmqA6DrfwrEst 193Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=mLkmWdPv; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc29-20020a1709078a1d00b007c1705dded9si1002034ejc.415.2022.12.22.10.09.41; Thu, 22 Dec 2022 10:10:05 -0800 (PST) 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=fail header.i=@mailo.com header.s=mailo header.b=mLkmWdPv; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbiLVR5c (ORCPT + 99 others); Thu, 22 Dec 2022 12:57:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbiLVR5a (ORCPT ); Thu, 22 Dec 2022 12:57:30 -0500 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9A9D28742 for ; Thu, 22 Dec 2022 09:57:28 -0800 (PST) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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?1752938689532864221?= X-GMAIL-MSGID: =?utf-8?q?1752938689532864221?= 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(-) -- 2.34.1 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,