mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
8616d9db34
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
27 lines
1008 B
Diff
27 lines
1008 B
Diff
From dc3d88ade857ba3dca34f008e0b0aed3ef79cb15 Mon Sep 17 00:00:00 2001
|
|
From: Krzysztof Kozlowski <krzk@kernel.org>
|
|
Date: Tue, 30 Apr 2024 09:49:14 +0100
|
|
Subject: [PATCH] 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>
|
|
---
|
|
drivers/nvmem/sc27xx-efuse.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/nvmem/sc27xx-efuse.c
|
|
+++ b/drivers/nvmem/sc27xx-efuse.c
|
|
@@ -263,6 +263,7 @@ static const struct of_device_id sc27xx_
|
|
{ .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,
|