2024-04-09 20:40:11

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH] scsi: ufs: mediatek: fix module autoloading

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

Cc: Will McVicker <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/ufs/host/ufs-mediatek.c | 1 +
1 file changed, 1 insertion(+)

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
--
2.34.1



2024-04-09 20:45:14

by William McVicker

[permalink] [raw]
Subject: Re: [PATCH] scsi: ufs: mediatek: fix module autoloading

On 04/09/2024, Krzysztof Kozlowski wrote:
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.
>
> Cc: Will McVicker <[email protected]>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> ---

Reviewed-by: Will McVicker <[email protected]>

Thanks,
Will

Subject: Re: [PATCH] scsi: ufs: mediatek: fix module autoloading

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 <[email protected]>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>


2024-04-10 09:55:02

by Peter Wang (王信友)

[permalink] [raw]
Subject: Re: [PATCH] scsi: ufs: mediatek: fix module autoloading

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 <[email protected]>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>

Reviewed-by: Peter Wang <[email protected]>

2024-04-12 01:57:57

by Martin K. Petersen

[permalink] [raw]
Subject: Re: [PATCH] scsi: ufs: mediatek: fix module autoloading


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 Oracle Linux Engineering

2024-04-25 01:58:10

by Martin K. Petersen

[permalink] [raw]
Subject: Re: [PATCH] scsi: ufs: mediatek: fix module autoloading

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

--
Martin K. Petersen Oracle Linux Engineering