diff mbox series

scsi: ufs: mediatek: fix module autoloading

Message ID 20240409203954.80484-1-krzysztof.kozlowski@linaro.org
State New
Headers show
Series scsi: ufs: mediatek: fix module autoloading | expand

Commit Message

Krzysztof Kozlowski April 9, 2024, 8:39 p.m. UTC
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.

Cc: Will McVicker <willmcvicker@google.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/ufs/host/ufs-mediatek.c | 1 +
 1 file changed, 1 insertion(+)

Comments

AngeloGioacchino Del Regno April 10, 2024, 9:40 a.m. UTC | #1
Il 09/04/24 22:39, Krzysztof Kozlowski ha scritto:
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Cc: Will McVicker <willmcvicker@google.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Peter Wang (王信友) April 10, 2024, 9:54 a.m. UTC | #2
On Tue, 2024-04-09 at 22:39 +0200, Krzysztof Kozlowski wrote:
>  	 
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>  Add MODULE_DEVICE_TABLE(), so the module could be properly
> autoloaded
> based on the alias from of_device_id table.
> 
> Cc: Will McVicker <willmcvicker@google.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 

Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Martin K. Petersen April 12, 2024, 1:57 a.m. UTC | #3
Krzysztof,

> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.

Applied to 6.10/scsi-staging, thanks!
Martin K. Petersen April 25, 2024, 1:57 a.m. UTC | #4
On Tue, 09 Apr 2024 22:39:54 +0200, Krzysztof Kozlowski wrote:

> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.
> 
> 

Applied to 6.10/scsi-queue, thanks!

[1/1] scsi: ufs: mediatek: fix module autoloading
      https://git.kernel.org/mkp/scsi/c/a6584df2fd51
diff mbox series

Patch

diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c
index 0b0c923b1d7b..c4f997196c57 100644
--- a/drivers/ufs/host/ufs-mediatek.c
+++ b/drivers/ufs/host/ufs-mediatek.c
@@ -52,6 +52,7 @@  static const struct of_device_id ufs_mtk_of_match[] = {
 	{ .compatible = "mediatek,mt8183-ufshci" },
 	{},
 };
+MODULE_DEVICE_TABLE(of, ufs_mtk_of_match);
 
 /*
  * Details of UIC Errors