summaryrefslogtreecommitdiff
path: root/drivers/nvmem/sprd-efuse.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2024-04-30 09:49:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-03 07:26:38 +0200
commit154c1ec943e34f3188c9305b0c91d5e7dc1373b8 (patch)
tree4c735ae4784f95ddfda8825b8af3940881a1a531 /drivers/nvmem/sprd-efuse.c
parentdc3d88ade857ba3dca34f008e0b0aed3ef79cb15 (diff)
nvmem: sprd: fix module autoloading
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20240430084921.33387-6-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/sprd-efuse.c')
-rw-r--r--drivers/nvmem/sprd-efuse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c
index bb3105f3291f..1a7e4e5d8b86 100644
--- a/drivers/nvmem/sprd-efuse.c
+++ b/drivers/nvmem/sprd-efuse.c
@@ -426,6 +426,7 @@ static const struct of_device_id sprd_efuse_of_match[] = {
{ .compatible = "sprd,ums312-efuse", .data = &ums312_data },
{ }
};
+MODULE_DEVICE_TABLE(of, sprd_efuse_of_match);
static struct platform_driver sprd_efuse_driver = {
.probe = sprd_efuse_probe,