diff mbox series

[v1,1/1] mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi

Message ID f57ad0f8fdf663465bca74467c344dfa305a3199.1675305696.git.limings@nvidia.com (mailing list archive)
State New, archived
Headers show
Series [v1,1/1] mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi | expand

Commit Message

Liming Sun Feb. 2, 2023, 3:29 p.m. UTC
This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else
it won't be loaded automatically when compiled as a kernel module.

Reviewed-by: David Thompson <davthompson@nvidia.com>
Signed-off-by: Liming Sun <limings@nvidia.com>
---
 drivers/mmc/host/sdhci-of-dwcmshc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Ulf Hansson Feb. 14, 2023, 12:18 p.m. UTC | #1
On Thu, 2 Feb 2023 at 16:29, Liming Sun <limings@nvidia.com> wrote:
>
> This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else
> it won't be loaded automatically when compiled as a kernel module.
>
> Reviewed-by: David Thompson <davthompson@nvidia.com>
> Signed-off-by: Liming Sun <limings@nvidia.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/sdhci-of-dwcmshc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
> index 49338670c89f..eddaed07755a 100644
> --- a/drivers/mmc/host/sdhci-of-dwcmshc.c
> +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
> @@ -446,6 +446,7 @@ static const struct acpi_device_id sdhci_dwcmshc_acpi_ids[] = {
>         },
>         {}
>  };
> +MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids);
>  #endif
>
>  static int dwcmshc_probe(struct platform_device *pdev)
> --
> 2.30.1
>
diff mbox series

Patch

diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
index 49338670c89f..eddaed07755a 100644
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
@@ -446,6 +446,7 @@  static const struct acpi_device_id sdhci_dwcmshc_acpi_ids[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids);
 #endif
 
 static int dwcmshc_probe(struct platform_device *pdev)