* [PATCH -next] mmc: sdhci-of-aspeed: fix module autoloading
@ 2024-08-26 12:48 Liao Chen
2024-08-27 2:10 ` Andrew Jeffery
2024-08-28 15:23 ` Ulf Hansson
0 siblings, 2 replies; 3+ messages in thread
From: Liao Chen @ 2024-08-26 12:48 UTC (permalink / raw)
To: linux-aspeed, openbmc, linux-mmc, linux-arm-kernel, linux-kernel
Cc: andrew, adrian.hunter, ulf.hansson, joel
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/mmc/host/sdhci-of-aspeed.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
index 430c1f90037b..37240895ffaa 100644
--- a/drivers/mmc/host/sdhci-of-aspeed.c
+++ b/drivers/mmc/host/sdhci-of-aspeed.c
@@ -510,6 +510,7 @@ static const struct of_device_id aspeed_sdhci_of_match[] = {
{ .compatible = "aspeed,ast2600-sdhci", .data = &ast2600_sdhci_pdata, },
{ }
};
+MODULE_DEVICE_TABLE(of, aspeed_sdhci_of_match);
static struct platform_driver aspeed_sdhci_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH -next] mmc: sdhci-of-aspeed: fix module autoloading
2024-08-26 12:48 [PATCH -next] mmc: sdhci-of-aspeed: fix module autoloading Liao Chen
@ 2024-08-27 2:10 ` Andrew Jeffery
2024-08-28 15:23 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Jeffery @ 2024-08-27 2:10 UTC (permalink / raw)
To: Liao Chen, linux-aspeed, openbmc, linux-mmc, linux-arm-kernel,
linux-kernel
Cc: adrian.hunter, ulf.hansson, joel
On Mon, 2024-08-26 at 12:48 +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] mmc: sdhci-of-aspeed: fix module autoloading
2024-08-26 12:48 [PATCH -next] mmc: sdhci-of-aspeed: fix module autoloading Liao Chen
2024-08-27 2:10 ` Andrew Jeffery
@ 2024-08-28 15:23 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2024-08-28 15:23 UTC (permalink / raw)
To: Liao Chen
Cc: linux-aspeed, openbmc, linux-mmc, linux-arm-kernel, linux-kernel,
andrew, adrian.hunter, joel
On Mon, 26 Aug 2024 at 14:57, Liao Chen <liaochen4@huawei.com> wrote:
>
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Applied for fixes, by adding fixes/stable tag, thanks!
Kind regards
Uffe
> ---
> drivers/mmc/host/sdhci-of-aspeed.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
> index 430c1f90037b..37240895ffaa 100644
> --- a/drivers/mmc/host/sdhci-of-aspeed.c
> +++ b/drivers/mmc/host/sdhci-of-aspeed.c
> @@ -510,6 +510,7 @@ static const struct of_device_id aspeed_sdhci_of_match[] = {
> { .compatible = "aspeed,ast2600-sdhci", .data = &ast2600_sdhci_pdata, },
> { }
> };
> +MODULE_DEVICE_TABLE(of, aspeed_sdhci_of_match);
>
> static struct platform_driver aspeed_sdhci_driver = {
> .driver = {
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-28 15:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-26 12:48 [PATCH -next] mmc: sdhci-of-aspeed: fix module autoloading Liao Chen
2024-08-27 2:10 ` Andrew Jeffery
2024-08-28 15:23 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox