summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2024-04-30 10:49:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-03 07:26:38 +0200
commitdc3d88ade857ba3dca34f008e0b0aed3ef79cb15 (patch)
tree05bda48a39fa445cbf2390934368973d6e482916 /drivers/nvmem
parentnvmem: layouts: sl28vpd: drop driver owner initialization (diff)
downloadlinux-dc3d88ade857ba3dca34f008e0b0aed3ef79cb15.tar.xz
linux-dc3d88ade857ba3dca34f008e0b0aed3ef79cb15.zip
nvmem: sc27xx: 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-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem')
-rw-r--r--drivers/nvmem/sc27xx-efuse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/sc27xx-efuse.c b/drivers/nvmem/sc27xx-efuse.c
index bff27011f4ff..4e2ffefac96c 100644
--- a/drivers/nvmem/sc27xx-efuse.c
+++ b/drivers/nvmem/sc27xx-efuse.c
@@ -262,6 +262,7 @@ static const struct of_device_id sc27xx_efuse_of_match[] = {
{ .compatible = "sprd,sc2730-efuse", .data = &sc2730_edata},
{ }
};
+MODULE_DEVICE_TABLE(of, sc27xx_efuse_of_match);
static struct platform_driver sc27xx_efuse_driver = {
.probe = sc27xx_efuse_probe,