2020-10-08 10:04:27

by Faiz Abbas

[permalink] [raw]
Subject: [PATCH] mmc: sdhci_am654: Fix module autoload

Add a MODULE_DEVICE_TABLE() entry so that the driver is autoloaded
when built as a module.

Signed-off-by: Faiz Abbas <[email protected]>
---
drivers/mmc/host/sdhci_am654.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c
index 2bce962bf7e4..a64ea143d185 100644
--- a/drivers/mmc/host/sdhci_am654.c
+++ b/drivers/mmc/host/sdhci_am654.c
@@ -739,6 +739,7 @@ static const struct of_device_id sdhci_am654_of_match[] = {
},
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, sdhci_am654_of_match);

static int sdhci_am654_probe(struct platform_device *pdev)
{
--
2.17.1


2020-10-09 07:05:36

by Ulf Hansson

[permalink] [raw]
Subject: Re: [PATCH] mmc: sdhci_am654: Fix module autoload

On Thu, 8 Oct 2020 at 12:01, Faiz Abbas <[email protected]> wrote:
>
> Add a MODULE_DEVICE_TABLE() entry so that the driver is autoloaded
> when built as a module.
>
> Signed-off-by: Faiz Abbas <[email protected]>

Applied for next, thanks!

Kind regards
Uffe

> ---
> drivers/mmc/host/sdhci_am654.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c
> index 2bce962bf7e4..a64ea143d185 100644
> --- a/drivers/mmc/host/sdhci_am654.c
> +++ b/drivers/mmc/host/sdhci_am654.c
> @@ -739,6 +739,7 @@ static const struct of_device_id sdhci_am654_of_match[] = {
> },
> { /* sentinel */ }
> };
> +MODULE_DEVICE_TABLE(of, sdhci_am654_of_match);
>
> static int sdhci_am654_probe(struct platform_device *pdev)
> {
> --
> 2.17.1
>