diff mbox series

[v1,1/1,SRU,J:linux-bluefield,v1,1/1] UBUNTU: SAUCE: mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi

Message ID 2e8ac1aedb52e9a13f35b6d8e034ef43e8d171af.1675427901.git.limings@nvidia.com
State New
Headers show
Series UBUNTU: SAUCE: mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi | expand

Commit Message

Liming Sun Feb. 3, 2023, 12:52 p.m. UTC
BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2004645

This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else
it won't be loaded automatically when compiled as a kernel module.

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

Comments

Stefan Bader Feb. 3, 2023, 1:49 p.m. UTC | #1
On 03.02.23 13:52, Liming Sun wrote:
> BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2004645
> 

Should be fixed when applying. ^

-Stefan

> This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else
> it won't be loaded automatically when compiled as a kernel module.
> 
> Signed-off-by: Liming Sun <limings@nvidia.com>
> ---
>   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 fc0af05adaed..9b14febc8f0e 100644
> --- a/drivers/mmc/host/sdhci-of-dwcmshc.c
> +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
> @@ -375,6 +375,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)
diff mbox series

Patch

diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
index fc0af05adaed..9b14febc8f0e 100644
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
@@ -375,6 +375,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)