Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp519995rwj; Thu, 22 Dec 2022 10:39:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4/V/tJgepEXSmHAzcVh2n9tA3eJw1oVXOF0lHM9cm3C5eczVfSW07eu7NDK9G99kHWgfx X-Received: by 2002:a17:906:d216:b0:7c1:2529:2760 with SMTP id w22-20020a170906d21600b007c125292760mr4909122ejz.27.1671734385628; Thu, 22 Dec 2022 10:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671734385; cv=none; d=google.com; s=arc-20160816; b=KICbwPvUGep7QLTpKy0hddzG+O2iRKEaxH903zPmATbeSzY4bQoOkKV6t+BZffkmA5 UGG8t4bNR7TU6wU5mlC2tQTjizV1yN1E7laEQAAUpjyxOVxbA/Q3DW22NT/F4cx5E2K4 gWsyjoxEkbifCOsQ0xNSCezXJ5ZuW/MQjvr4/FcPmPts1yiSboCTJYr9vgJ3dvtF7CrG 5gaIKQB+WkEntWirGbRBCRp57QI+guz2G70l8PV0ECSaiheZ2eVs6ckYMHTbt6W6WRVa eGwK88GfNGwxNNjSOyC82OiBzU7LkdybinW6SAeBC13RjroKXt0tXtmJvAYz01UHsjY4 SsPg== 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=9/Dqzqj9R6HPAfC6OUQks87FRjnuFho2rnxC5KwFHIM=; b=o9317og5i4tubqTOZoyhz4LV9xGjTWtvIGeyn3aIGAXfj0nkbxTJikRtQl2CJmY++8 NYyIqatYs3gdGUqei/9Ov+YJcZ5Kt8V2iQWxJQh6FkqHiIWoxLSKVX97U/9JyE+5PkTm ITWtCl44OAj4giz6fU/XtlqAPB4/QzQqjvQgf03yC915NIc10RxZIzPUzXD91C9/XBk/ 2nAtxxuB/5PmdzvxldPbjslDkQ2cBCpTB64wW8t6lPjB8P+bxM0yPMAG2HAm5Y+5yhaC ygt+han8dZdrdDscY/uSGJ8cHIYieKEKhICK055lQKiM6lwKCwKfN+1fe0dhEwZD/ptn pL2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=cvYzXywC; 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 i10-20020a1709064fca00b007c0a7bc2854si1111721ejw.410.2022.12.22.10.39.27; Thu, 22 Dec 2022 10:39:45 -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=cvYzXywC; 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 S230451AbiLVRyB (ORCPT + 68 others); Thu, 22 Dec 2022 12:54:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbiLVRx7 (ORCPT ); Thu, 22 Dec 2022 12:53:59 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA125B7CC for ; Thu, 22 Dec 2022 09:53:57 -0800 (PST) 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-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-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