Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp485749rwj; Thu, 22 Dec 2022 10:11:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXsT0EjW8zxvp/lTxnFs+cFE9wNjRMhecmbUfDnTvzOGYnPZhdb/fHuOMXA9kliD7aDmzqW0 X-Received: by 2002:a17:907:d08d:b0:7aa:76a:fb3 with SMTP id vc13-20020a170907d08d00b007aa076a0fb3mr6218158ejc.66.1671732670950; Thu, 22 Dec 2022 10:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671732670; cv=none; d=google.com; s=arc-20160816; b=1GY/uo6l1IJen9I/09T1EAcYP0s+uRhMeF2Bv6DEmKPuxyQ9NmIBlu4WmWT9e036JH YnLUnzQZ+EguHbkXfquXJP/YHx7hJrFNn8u4pvvXNHNmcs98EMv7dutXHA8BEyFkkEtH vdO9YwllDpbU03GjbAV5UqaLEz6Epi1NQdxsRlusvg8lEHUvhc51SXjYM8GHhsWlWI7r ZV0hg2NTT8KeaHkdX5tzKBiVvQx2S6l0yp8zInHhUCJTwAThfsc52N+jOFc8asZJnd66 Ynbm4igalQIG7KaPeGL3IFgD/okq3H3TsqzTJ2K+3tQyQDHTqrSw1UO54FRXGSTs//kl 4leg== 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 Return-Path: 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.10.55; Thu, 22 Dec 2022 10:11:10 -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 + 68 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-Type: text/plain; charset=us-ascii 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 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