From patchwork Thu Dec 22 17:53:16 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: 35893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp93536wrn; Thu, 22 Dec 2022 10:10:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXsG2NYEEKAL1GdVm3qPfDQnepbTMIlliMt5fpvapw4dkYp7zRd2QNCCul50DpIfwHr+U85W X-Received: by 2002:a17:902:e903:b0:189:6191:a1b4 with SMTP id k3-20020a170902e90300b001896191a1b4mr6864753pld.55.1671732604570; Thu, 22 Dec 2022 10:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671732604; cv=none; d=google.com; s=arc-20160816; b=KYztX8s0UN6uvxKsW7DLtqBI/mIzF4gncQunVW628W0azMpJhDgGFJxaVlBvVtkMM1 6+TAmc329+9aBvmzJQmi2q0Vxlnn8TLm6TSW7tn1mtLMSZ47BuPtRmtt8rnDfYRFRXCz sovprt7qcBxXLOMn4xxlrkF+OdMXlXBxrENjWm0HTnrjfao4gcgIQnRQ1DD96O3kpxq0 Nj46MbjY+vvCrpgUF/2JGCCkDo6pdLQnKk5z551J7aWVj0iKcgpW6l1bJvywBtHp+KsV Ly9Wf452RZ3JPxcVNO7ojfF0G2q6EpC2rsazwjViPyXQvCA4VkNhjo0ZxDF/hpH53RFf 60bg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a170903234300b0018659963cdcsi1137428plh.514.2022.12.22.10.09.50; Thu, 22 Dec 2022 10:10:04 -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 + 99 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-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?1752938687541183258?= X-GMAIL-MSGID: =?utf-8?q?1752938687541183258?= 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(-) -- 2.34.1 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,