From patchwork Wed Apr 10 17:01:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13624850 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B5F217B503; Wed, 10 Apr 2024 17:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768524; cv=none; b=Edf4eau+tTDsXxWnl556CD8Js3qoHivD5CFI2FPySnSXyt6XzBt7dURV8+nIzA+5Buoa6Lst2/cVANsGKkTLZ31ug9UHDDhKau97adS//ezKvLLGAFsJVDS/oF1qVexve42FTz57SWB9JpTY2K0e1doMzddpCs8NswmcGZAB/fE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768524; c=relaxed/simple; bh=nfO7BhOr35ZNDar/Pmam3BamoEiQ6+6qfGd93yRI2Iw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=GrAJtw5mu6tbqjqN5NSfM9fVR5fJJAQuvNg1PE/QV6WhGyUumL5oDhkePy33RQBKwrBUC+gm5kQ1n0k55V5ghSEF74erE2PYstTpRXoRynvEMDcm/HlC+dYljnSnrA51WrmqtE2GtH2fESU+s7mkXiyXxu32wanBpUjAciB0aSU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ocnr0wxS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ocnr0wxS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86249C433F1; Wed, 10 Apr 2024 17:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768524; bh=nfO7BhOr35ZNDar/Pmam3BamoEiQ6+6qfGd93yRI2Iw=; h=From:To:Cc:Subject:Date:From; b=ocnr0wxSgG0VHuixPUnewtVTdrpXKREAJATiYstPXiA6ckwuxFE/T265Ecu3MmGZp cUhd3UCcCswUl4cAWN4j0KuGATYzzAqzCVZ7IFErSkDo0LluDagpGoAHs3nVmSxFqd f7POFdR5JNIx9PuFeKiQZYwe9F0iE+FZzhdUBjWPu5QhYSIA4/tEziWa/LZLt4luTw AOr+Oc/Qok9e36AsqOTaE2WaM8JG4d2wikipPSl31qP3vwXp0qpA/6gU0qyf4JvuaD kF41OSTsMtzN5EloWkPnYzywlAcnIGf/1khnTgbA+8+FfoYNcrDWL9aSmTHKWffA4q 6nNb/sv9XVNMA== 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 1/5] pinctrl: freescale: imx8ulp: fix module autoloading Date: Wed, 10 Apr 2024 19:01:46 +0200 Message-Id: <20240410170150.248428-1-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 Wed Apr 10 17:01:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13624851 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09E1017B514; Wed, 10 Apr 2024 17:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768532; cv=none; b=eSMzHcBLd4N4rECT8VpfyYLlhHIPHW50zDIT0beVzeNCnuOQgrifDpZtihf8qJfTPo3ot9Bqp3pLQmzv/BUQvCMFPIsAtXNXJprynBzhMNrSWL03c+Afe6Vi38kN0x2TaVd346xGUi5HNhn4tIFsC6fX1n+7ZnUkTqrMNxX1aTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768532; c=relaxed/simple; bh=UreIdQFDaJPTJRQHIFlJ3qYvDMdt0vj/yTnEoOJ3Q+c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BD10QOnVnGlJdDBXS1dm90VmoZxp8EhwOumMQ1CQp0kAg7Bex7BFZ2Y484xg1x7s7hSu6Ucrh9mnWEqO2ThRpRy8gEcfLPMllyR1dWWbVYBIIHFvwD0kei5i8wjLCEvNAvPRFDnCltgQ3+9M6nzDZ9eED9a+yIrXwZMVENuNaTo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T3TiokUV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T3TiokUV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8B92C43394; Wed, 10 Apr 2024 17:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768531; bh=UreIdQFDaJPTJRQHIFlJ3qYvDMdt0vj/yTnEoOJ3Q+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T3TiokUVrqi6QazyAYeehv570Re+STaAnOo+2acOtaHn9CO3TXb+oWo1QllIJtcDI SY7K7Y7BBnhSTy73+CdIcqBB0q65mWO8FuN/RIhTtbjhNvjuOszJ0mM5WZwxucYpRE je2LSm7oW7MAFjL/uuxVpC8IU50C6JUcvc8gpwXVhiFVWBCXrBowsBgC9XaTVkGw88 d69GnjaWSWUXQIVr/929tead12fVRBEvUvtSnY9lWOwzQkGfxao2WSvB7nfMHbMFtO kVtsCFSAqflOXBbhPP35X7Sd3x2ggwMClj11bQcXhe697BHmoiJYjUAYJnjbQEF3/1 xJ9Ho6eBQDhlQ== 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 2/5] pinctrl: mediatek: fix module autoloading Date: Wed, 10 Apr 2024 19:01:47 +0200 Message-Id: <20240410170150.248428-2-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410170150.248428-1-krzk@kernel.org> References: <20240410170150.248428-1-krzk@kernel.org> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 Wed Apr 10 17:01:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13624852 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAAF917BB08; Wed, 10 Apr 2024 17:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768538; cv=none; b=NRpMphFvNcNOD9+px7Lm/0guLlYRfQRRm4WCVX+6PBRQcS4bPL1fvnOsuSOio5OC0NvkQh9T+f8WGIO3K+ewBuFA728+/9U7/0ELNQStolgcstKB9PaNAw1K+2XdYj2NH9QzujPeLJGFK7AFsZCZw/bUbKJI2oYEmsHYu6N1+Bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768538; c=relaxed/simple; bh=J8Xz0tO7wTFJkDIRc8XHLYUNNwxXvSfpj3JcT9M6hUo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PCfOSbSdmmtGOkprZv6i9ay4Mk4QEZqrUmb1RPEijKtIG783UEUC3ZYjBgfswmrY0i8I96Rkwp4bp64zrxvnCHzM4EUb0sYvUiRwI02fO0nB4zbDzaUkgO7/7lBqttrCs7G0ggtjPUvC3M81yfD2tJypDHzUp9OvoOshSIEi5iU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZACkiovP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZACkiovP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49A5BC433C7; Wed, 10 Apr 2024 17:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768538; bh=J8Xz0tO7wTFJkDIRc8XHLYUNNwxXvSfpj3JcT9M6hUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZACkiovPiGAvRBWw0ptxzDvez/h/OO9ESEpjSpxcblWyNi8XG5hw6rSN0T8jO7Ztv qNSb/TVDDZGnyYwLmv0S6BNnqWDnRluQh52PV1ER1KzulQCG8y0ZqJovttvtgenbGZ +Y6ahqjQ5hK6ZdZSL37/EASTHl3YlFSkpOv/oqCrbZTfQ1s82s4MYFUwqDWI4GQjQd 6ITbtEspXCEjlyY9jRsN7qsNYh9g7HJC7aPcJGu9JK4s4OkOMeeyNI3obYx6c/tPot +9dUiEowanr2b+hHORsbTnvY5fk+csFAQoQnHysD/IMls9R+5Sm9NDQ7+h18lzkQL5 ALkigSot+8hMA== 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 3/5] pinctrl: loongson2: fix module autoloading Date: Wed, 10 Apr 2024 19:01:48 +0200 Message-Id: <20240410170150.248428-3-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410170150.248428-1-krzk@kernel.org> References: <20240410170150.248428-1-krzk@kernel.org> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 Wed Apr 10 17:01:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13624853 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5377517BB00; Wed, 10 Apr 2024 17:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768545; cv=none; b=bM9wREkysy6Q4uGC4aMYMlMR4aXvCfDjGiouUUUXBIGLMRdwSCeMCEV1NzbKWyPz2Ij3m8t1js76uVW5XKPs/Hfbtuv1F3TedLqJ5ft24yGh7kxiHftNNkfwxKe/KO3mIC/W551fRzKPluGyHwnHyUTK61JdL1G4nSoNptXSdTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768545; c=relaxed/simple; bh=QjOnUyfopFRRMcjgTW7txOdo+Ae88Ip/13leO2FO7/w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tN8PaeWuKNi/IrNwoMsDi0o1ycOGy/BZOimPiJFUULCyRkjlww1x7GKlo4IGRcEAjqdI+VrY/MqNrgxiJiQ0hIVeq/TCv0xqZF/DnWgOgFA6IVDnEj/Li91auLlNah+YuYeDqkRnhw3Zu0ijcGhIx9H3SD7SPW6vHRVFmJHGt5o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=an6fpQQP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="an6fpQQP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E86DDC43390; Wed, 10 Apr 2024 17:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768544; bh=QjOnUyfopFRRMcjgTW7txOdo+Ae88Ip/13leO2FO7/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=an6fpQQPjKNGuD77EbqSH2lJ37F5yaVuRShnLg5EpdBkj0jCqjrASa7BRLmolzFZO IymiKzEkAhpZg7WE865Sg3BtlYm1Y3IZo5xEr2cIKPyA9pH3AULFNEUSaGikP8UIRQ zpiQhRQkWVdduoDXcCGI9Nypuy0N4/mIAfqhQNnbPHuHzCaj2gbIei1AQZZ5iPtfwN oWBB88KfTt1YqYzElCyMJw+DB806oMjcryH0JNwA3bP6om43Xw763sxs3J/LmL3BV0 mEA3CpgV3MYzUx0kkDiKXCs4j1FTvECLbGkkFxAskhX+jxKnl3hVJXzOAdac+DoQ2r NyeDxzKNMxfjw== 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 4/5] pinctrl: qcom: sm7150: fix module autoloading Date: Wed, 10 Apr 2024 19:01:49 +0200 Message-Id: <20240410170150.248428-4-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410170150.248428-1-krzk@kernel.org> References: <20240410170150.248428-1-krzk@kernel.org> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: Konrad Dybcio Reviewed-by: Bjorn Andersson --- 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 Wed Apr 10 17:01:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13624854 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7DBE17BB03; Wed, 10 Apr 2024 17:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768550; cv=none; b=fWjrHW1n0nqFgVHvzZHdoEgc7Hd/+Gyj90LqK2sO5k/lYpmqH7c2yfzsAYttybqGkGqZFDr8IdpVzW6tILq721dTjUL+CObdciVw2PPbhF0yR/SDJ2+OZqnnHryAUetursbg84St3xrxX7192Jqo6OtWVLzSs7W1fhDFRcnEfEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768550; c=relaxed/simple; bh=X5Xl+Apo8HTXG6kNLMLPU23egnj69bbwrAOoPVmLBzw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pfeIfNlM6i5JSLa9TP8SL1/S5eWlS9i/JfE64B2adVCiWXvNaXQAxx3c8FpFMoAfcTGqeaHZMlfcFIvC2bd5FBJGCIb//UQFZPyXRUj4sntmI/FJQE81irKMAExmc1OR7XkCBlzISqyTs0w/ApKWFIDWRW47QYwO/YN8xRJH0PA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eaaofxEP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eaaofxEP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E12C433B1; Wed, 10 Apr 2024 17:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768550; bh=X5Xl+Apo8HTXG6kNLMLPU23egnj69bbwrAOoPVmLBzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eaaofxEPTrlwI7/JwDfIgCY4I/zqZCAz4yDo9ua+4mP5AxSehSI2PP5pBwe1W14Wt RiaFNXRqtw3/EGbbeduCBluKm/YbSLbsh8jhiHrGfN6MSYVqBcrN/kwwYVQdvFeO3o 3ia8P70evuxbLmjkHFFvXcNYtYpfEwDclm9DMIUfd9TATx+rE1lcSB2MV++DrTtVB1 3hDBo6NHfBi0+YNjsQjKWb0lNuI7ai2tRvbDl/8VIqjJCm/URcK52tsYbt9oilL3HW 8NkPCkdXKSCrhAQcbzTq0AOv3a0RaUJyswXOsndrhHcP3IOBh/YEyKACwS5Xd5wnzW CpIbQRycVkNLw== 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 5/5] pinctrl: realtek: fix module autoloading Date: Wed, 10 Apr 2024 19:01:50 +0200 Message-Id: <20240410170150.248428-5-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410170150.248428-1-krzk@kernel.org> References: <20240410170150.248428-1-krzk@kernel.org> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Signed-off-by: Krzysztof Kozlowski --- 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 = {