Skip to content

Commit a6584df

Browse files
krzkmartinkpetersen
authored andcommitted
scsi: ufs: mediatek: Fix module autoloading
Add MODULE_DEVICE_TABLE() so the module can 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> Link: https://lore.kernel.org/r/20240409203954.80484-1-krzysztof.kozlowski@linaro.org Reviewed-by: Will McVicker <willmcvicker@google.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 2810702 commit a6584df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/ufs/host/ufs-mediatek.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static const struct of_device_id ufs_mtk_of_match[] = {
5252
{ .compatible = "mediatek,mt8183-ufshci" },
5353
{},
5454
};
55+
MODULE_DEVICE_TABLE(of, ufs_mtk_of_match);
5556

5657
/*
5758
* Details of UIC Errors

0 commit comments

Comments
 (0)