mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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>
This commit is contained in:
parent
23fd602f21
commit
dc3d88ade8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user