From patchwork Thu Apr 11 06:46:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13625454 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 D607CCD128A for ; Thu, 11 Apr 2024 06:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=aC4UP0Zguq0QqAZ0ftXd8CefIw34bIQAMaFVPvt4Kkw=; b=RaPXXizdg+2WPk2lD4k950Mvez T7PAiqSX9bpgNGO7VFo/HN8j3ifWOzjzjbGtpG35Qyt5k5QtkAL0IJVpuOZSZXAOYEoU6/wAV8BOh MDRHt1Ye97rSKDqg06u+ej+jW54oSBcDqKQeU6dFIf2DXW8yGrvlHfeCQJkFzo6/l2jzGchW3VWL6 nj1wHclRawhCRT8JR90HhpDeTyDpnRtPraeqHOl3vJJzazkBU+CKtYam7KzaKzbaeP5rrFpkHeLh7 l4s11b8hEKWGT37TIjYH1AMlzc/aW1r08P/W416PdOX0M8Q5Cvy/lRzZ/GSkksywRNgwAzurc0Aj2 DtxLGrZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoCn-0000000AebB-441q; Thu, 11 Apr 2024 06:46:41 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoCj-0000000Aea4-3FZY; Thu, 11 Apr 2024 06:46:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4F82461FAA; Thu, 11 Apr 2024 06:46:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E487C433C7; Thu, 11 Apr 2024 06:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712817996; bh=WbLKltYK/s7kUm98XICzKNUnpZwUdIqRk1dgonQu5Yc=; h=From:To:Cc:Subject:Date:From; b=kfihvtP24X739EE/kTEzwc2BdjlE2pfwBwO6OonyFbHsJNJCR1SdBGZlouBbwK7HJ +yErPp4MIvHGDfdln/y2MYCyZzDP0KsCGKYE+oiQtJxin+o6DL/1z3/6GKNRU6UAZF Esbb8FdcOechMyx53FoLOXcFwEFAM7uEVidM1vLBuJY01Sbk3EU9Iwzkfbrh5PzfAb lOpRpWe4EemuLChfxRE1gY2mLalzr3U4aPmKYlRl8x213dEy20XMsIpcsg29SXm7/o 0eWmm3qJ+gyJ+oXhR/zE6dao+mZ8PTf7qRk/7QBbQQCmqmNXkJa1qLshIEYVIb8+4i 4N4M4Q7KZ3/RQ== From: Krzysztof Kozlowski To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 1/5] pinctrl: freescale: imx8ulp: fix module autoloading Date: Thu, 11 Apr 2024 08:46:10 +0200 Message-Id: <20240411064614.7409-1-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_234637_888239_1323CFED X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. None --- drivers/pinctrl/freescale/pinctrl-imx8ulp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/freescale/pinctrl-imx8ulp.c b/drivers/pinctrl/freescale/pinctrl-imx8ulp.c index 2e86ca9fc7ac..5632c7285147 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx8ulp.c +++ b/drivers/pinctrl/freescale/pinctrl-imx8ulp.c @@ -252,6 +252,7 @@ static const struct of_device_id imx8ulp_pinctrl_of_match[] = { { .compatible = "fsl,imx8ulp-iomuxc1", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, imx8ulp_pinctrl_of_match); static int imx8ulp_pinctrl_probe(struct platform_device *pdev) { From patchwork Thu Apr 11 06:46:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13625455 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 76B59CD128A for ; Thu, 11 Apr 2024 06:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7PtuyMnLEnJbClrqcUx/f3P7mZzM7Esss6WXp/AR7vg=; b=zTaFjPnXAydsOju3VDe1LwE2E2 b4ctJMmIl0ZTHmSu3TMi1qVE8unh8wPCniyDntWSOXwIkXqYvb0C4L8XcNi22WRpz0MHn4Tcorfia 34cxEqIrNFPVMtkeAue0XARnxCR3VKBb9w747dhcANPNIpkxi/Wrj/oiy/jw+i8uxW4xJMsl9F9pU 59H/aIANHTSEXx3ps0X/u427In/RdVwfhyp/rpxk4WvoPoIo+5cyOlNnlIF5w4ALozmsTZx9JV1Hy V3ohxlEGz2xbuTDTkZFAooYb2FEI43kGMVcBh2KHhVyMws0OisNG7Gu6UKPWuNxLYvpkF6s0bp+qS /441MVyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoCt-0000000AedV-3fea; Thu, 11 Apr 2024 06:46:47 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoCp-0000000AebQ-3mnG; Thu, 11 Apr 2024 06:46:45 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E2B2D61FAB; Thu, 11 Apr 2024 06:46:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6958DC433B1; Thu, 11 Apr 2024 06:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712818001; bh=gMnoez56bAZd7APZvMyA7WH/YLAHsyDnpeBOij4GxtQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/ZL7ededP7US0kHeZuRlSNuSKFS3IwH2l5s24Ojuq6QpEHY2CdCHDI5Cwy+3jyWz ewWgz/a47Zp7cvDTnbKSl4BMrI/QWpnsCR3WqsqjR5xmV7gJWWaGrkD8yEv1iDeZue HdflEQKF5uo4r1oi59xgDR5n/ZdIAy6ygI56+1A2a2VmPtwLvMC7RNO/zVfgpipMOd juJ7kZn6prkM56sHUQQ7LtBKZV6+1fsoMhr4T3foqrxFTA6JQiFahjPgccmp17QvO+ BdDtOz6TPGiOOABg8TJlgeiY1yXMoHHM2GBLwC/Ibl7YrbF8+TsXBKLqMZ2ZIKZeVr M5B2vBYEusCYg== From: Krzysztof Kozlowski To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/5] pinctrl: mediatek: fix module autoloading Date: Thu, 11 Apr 2024 08:46:11 +0200 Message-Id: <20240411064614.7409-2-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411064614.7409-1-krzk@kernel.org> References: <20240411064614.7409-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_234644_014158_F81A0610 X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: 1. None --- drivers/pinctrl/mediatek/pinctrl-mt6765.c | 1 + drivers/pinctrl/mediatek/pinctrl-mt6779.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6765.c b/drivers/pinctrl/mediatek/pinctrl-mt6765.c index f6ec41eb6e0c..72609cf74760 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6765.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6765.c @@ -1086,6 +1086,7 @@ static const struct of_device_id mt6765_pinctrl_of_match[] = { { .compatible = "mediatek,mt6765-pinctrl", .data = &mt6765_data }, { } }; +MODULE_DEVICE_TABLE(of, mt6765_pinctrl_of_match); static struct platform_driver mt6765_pinctrl_driver = { .driver = { diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6779.c b/drivers/pinctrl/mediatek/pinctrl-mt6779.c index 62d4f5ad6737..591905e4132a 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6779.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6779.c @@ -762,6 +762,7 @@ static const struct of_device_id mt6779_pinctrl_of_match[] = { { .compatible = "mediatek,mt6779-pinctrl", .data = &mt6779_data }, { } }; +MODULE_DEVICE_TABLE(of, mt6779_pinctrl_of_match); static struct platform_driver mt6779_pinctrl_driver = { .driver = { From patchwork Thu Apr 11 06:46:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13625456 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 8848FCD1297 for ; Thu, 11 Apr 2024 06:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LCS07IwaqzoOawpCoYZUCEB1zC4VYUIyaLN6jLXb97A=; b=A5zTtj50ZxjoWpLC28MV6hpgWK LlVTthesmfpUyCG16k6wAHX7+kXTnNgYGLJ1iv1qMojLan3UF1aBn7iRJcVjL88sA+AXUzS6j8RDf yv0afx6VOPfHUoGYcrZk131gM5CmOMXDoRV9mmKAfgscLgRXBkG3MS78VC6ZrWwejY3bdgitm3SWw 6sVtbdV1q690FENWkFLuLdKJIry+DkM94V7Ww7QJy3Jm7P+u0fsNAnye3UInJQF8YLtK5ucGS0RPI nIPTFfVpZSXF8fPHv7lxspUtTiE/EcjngKAXr6SB183GV8wzxpPjzDaa78xMt7PIRsq/Uwo42Z8H5 6fB9zxZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoD2-0000000Aejf-02IJ; Thu, 11 Apr 2024 06:46:56 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoCu-0000000Aedc-1HlQ; Thu, 11 Apr 2024 06:46:51 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B9A3061FA7; Thu, 11 Apr 2024 06:46:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41C94C433C7; Thu, 11 Apr 2024 06:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712818007; bh=21qdbRrqdGeNpdC7/Fy478NKAKlmZ/ysh6qtF4JrPnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GvOlDXDpmb5BZ1h0Yrf9VuMwYVPczU8wY65hiLQeXdcjBEqxT/jpUq+18+Fl5BMMF bM2xJTDZCeV48U2HD8E2c8lj6hY7/sOWX6uNTG3GeDavIokun2bqbgtkViGJfRIsh5 l8xFi5MOzEsTz3CkonWwL2WTKdfVBVVsCe2BKASEvyPfF+aDoT+NQbIhHabTgqiF2R Qt+Nndp4X1uwBcVTu5OcGX5SvxAwYAERA5vvInO+2FrIMjDPBMqX4qlbOoyqsyt96B JBKVfSJZjyrRRnxD831cRlYVtXNWM5kfq2ysZP8ojDYXszLp2XVkzKxguuoDExdzeH NjJCw3rd/s0Jg== From: Krzysztof Kozlowski To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 3/5] pinctrl: loongson2: fix module autoloading Date: Thu, 11 Apr 2024 08:46:12 +0200 Message-Id: <20240411064614.7409-3-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411064614.7409-1-krzk@kernel.org> References: <20240411064614.7409-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_234648_463970_B1C0614B X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. None --- drivers/pinctrl/pinctrl-loongson2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-loongson2.c b/drivers/pinctrl/pinctrl-loongson2.c index a72ffeca26fb..4d4fbeadafb7 100644 --- a/drivers/pinctrl/pinctrl-loongson2.c +++ b/drivers/pinctrl/pinctrl-loongson2.c @@ -286,6 +286,7 @@ static const struct of_device_id loongson2_pinctrl_dt_match[] = { }, { } }; +MODULE_DEVICE_TABLE(of, loongson2_pinctrl_dt_match); static struct platform_driver loongson2_pinctrl_driver = { .probe = loongson2_pinctrl_probe, From patchwork Thu Apr 11 06:46:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13625457 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 EF9D7CD1297 for ; Thu, 11 Apr 2024 06:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=phGhLZFh5d5/nVHomI8iBHZJwlJ+uxi20iTG5vYNjcE=; b=Bue2BVuplTpjaj0nQ3VqQgS13i CJ+fDomn1x4CrfAavZnU3fLOVCzL04GfhNRbPcVsiyyW2p3L1Mmt4RFFJTUG5nOWleqNuIemjDoed 6XWo2ZEVRaRWAcQMvolKuynKeD0CNMVZZNYrAgu103RpjE1Ks+hSxjomWCR2Lsi3J0Q5fdKB1X+YF w3jjrSj6Petc4GZ/acXTdMvsxslHW0fLdMti2k32OAQGVClP0TPZvFpIX0Y12c0u6HjXyCVHh3zJL +haaSYQGucy2mJZR3HMR8gOTAzXygJe5y6yTaeszIOquDuxInwDyHicGVzwo3G+SZfkIkcN9fjJYD /GzETKnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoD8-0000000AenH-0Vws; Thu, 11 Apr 2024 06:47:02 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoD1-0000000Aeiu-0XaK; Thu, 11 Apr 2024 06:46:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 86B3061FAA; Thu, 11 Apr 2024 06:46:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3F91C43390; Thu, 11 Apr 2024 06:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712818014; bh=saPqICVhCGR/yOaqVsxnFMPKByX7RX+rEnct888M6xY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U0GyO2FL9vi7BGaiTFI/pHzFJusV4ihtgOSiDp8X1zfDRNDFgSi4O/5nbtmos5GCE Kt+d0ZlQr+UhKv883e1MThO4g/glomoIx8NAdMKn1WoXHRRwnKj0NsjgimkVPclrcc KG5FJQ2l4MJVOgwnZ3EI+VBSDJma+HNbjt2uxSe4njgvYCtaf1E9vQWU1Rt0OqgUhm gyjRRmG1kB9aHESZTpKJKSHYNM44+ycP4BLcubHdbhh5U2QQU/1mPKfhxEuDpRjuyF ImMANFtsng8KIM6g2A9GFDamV0zK/V0UUxlSSosEBdS27lMcztD/doX7DyjUplMHfz VfPQUyCEEZVBA== From: Krzysztof Kozlowski To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 4/5] pinctrl: qcom: sm7150: fix module autoloading Date: Thu, 11 Apr 2024 08:46:13 +0200 Message-Id: <20240411064614.7409-4-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411064614.7409-1-krzk@kernel.org> References: <20240411064614.7409-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_234655_284622_1EB68B24 X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Reviewed-by: Konrad Dybcio Signed-off-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Bjorn Andersson --- Changes in v2: 1. Add ack --- drivers/pinctrl/qcom/pinctrl-sm7150.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm7150.c b/drivers/pinctrl/qcom/pinctrl-sm7150.c index c25357ca1963..c542f9bc6bcd 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm7150.c +++ b/drivers/pinctrl/qcom/pinctrl-sm7150.c @@ -1246,6 +1246,7 @@ static const struct of_device_id sm7150_tlmm_of_match[] = { { .compatible = "qcom,sm7150-tlmm", }, { }, }; +MODULE_DEVICE_TABLE(of, sm7150_tlmm_of_match); static struct platform_driver sm7150_tlmm_driver = { .driver = { From patchwork Thu Apr 11 06:46:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13625458 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 7EA40CD1297 for ; Thu, 11 Apr 2024 06:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=z/KoMRQK5iP88a4eO+gG/7tzJ/NeGARuIj8pLdAKqCg=; b=FJz2bJDXXEDtg7ZxVNYbkbFOnb tC7qH2FR+O5tGdfP3lAWh2SZsLk9D0Xeue+IEmmOx/pupwjn0GCJRGk82pDslCZHPqY58Lg37BEl+ WGZazm3uPAi3aRZiwg1HZ/EsFkZCC3hPTjA3PLyes3OMggb2MjIZWwn8Kvw3sQ6FairXgLLkSQm0p F82X8+TdJLrV7YQ2/A1EOFv9sxiWEclsgB8Ic3y935PIeVUqeI6k1qGyM1tSrJzJV2wqrkzH9CD24 924gA4EHSKoV9UpPkTMEsJhPT9/URJCB8VnGotqh8iDsomotLvRZKtcf9RpgBqvF1ygCSrjS8DM7U XGxe0R/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoDM-0000000Aew5-01JW; Thu, 11 Apr 2024 06:47:16 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoDA-0000000Aen1-1xXB; Thu, 11 Apr 2024 06:47:08 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id BC5D0CE2F1E; Thu, 11 Apr 2024 06:47:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3E6CC43390; Thu, 11 Apr 2024 06:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712818020; bh=GlRh8UW057t9Bq8GK2coWR2MWUDzOJl27L0JCrjgaf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZFKc09GOz2pyCjFCQEQ7BKvIvyvN4vJYweQ6qxwCoEii02GvFk6M3OceD33dErEmE WPTg7FvmEh6qU9vHd/IdEeSZCl4kSpOTpwM/HXc49zq50w/tCjpvpO4Q871zufnxHw iE1+omGnughItTcCtnltH5ji09DkK6WDCVla6Wb2pNwCS+/v8InKy4IIpUsFKJugsb ijFfsyRq0KP753r3KrhM5pYkHGvfGfHNti7g/TbniHp7ZOLBmdoLPaxbWOl0T5RQAV P/ZPTWC5ttBuCJIfmXSQN4I9loBcO0ahg7+T/vB9w/EHxXPvyVeNRi5D8NQ/VM0HB6 KetL8uwhApKqw== From: Krzysztof Kozlowski To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 5/5] pinctrl: realtek: fix module autoloading Date: Thu, 11 Apr 2024 08:46:14 +0200 Message-Id: <20240411064614.7409-5-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411064614.7409-1-krzk@kernel.org> References: <20240411064614.7409-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_234705_048731_C2BBE03D X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Add missing yank-yank. https://lore.kernel.org/all/1d96377f-2a9d-49df-ada3-086d1e6b9dab@kernel.org/ --- drivers/pinctrl/realtek/pinctrl-rtd1315e.c | 1 + drivers/pinctrl/realtek/pinctrl-rtd1319d.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pinctrl/realtek/pinctrl-rtd1315e.c b/drivers/pinctrl/realtek/pinctrl-rtd1315e.c index 10afc736a52b..86f919122bed 100644 --- a/drivers/pinctrl/realtek/pinctrl-rtd1315e.c +++ b/drivers/pinctrl/realtek/pinctrl-rtd1315e.c @@ -1414,6 +1414,7 @@ static const struct of_device_id rtd1315e_pinctrl_of_match[] = { { .compatible = "realtek,rtd1315e-pinctrl", }, {}, }; +MODULE_DEVICE_TABLE(of, rtd1315e_pinctrl_of_match); static struct platform_driver rtd1315e_pinctrl_driver = { .driver = { diff --git a/drivers/pinctrl/realtek/pinctrl-rtd1319d.c b/drivers/pinctrl/realtek/pinctrl-rtd1319d.c index b1a654ac30dc..474c337d2d05 100644 --- a/drivers/pinctrl/realtek/pinctrl-rtd1319d.c +++ b/drivers/pinctrl/realtek/pinctrl-rtd1319d.c @@ -1584,6 +1584,7 @@ static const struct of_device_id rtd1319d_pinctrl_of_match[] = { { .compatible = "realtek,rtd1319d-pinctrl", }, {}, }; +MODULE_DEVICE_TABLE(of, rtd1319d_pinctrl_of_match); static struct platform_driver rtd1319d_pinctrl_driver = { .driver = {