Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Greg Kroah-Hartman
dc3d88ad 23fd602f

+1
+1
drivers/nvmem/sc27xx-efuse.c
··· 262 262 { .compatible = "sprd,sc2730-efuse", .data = &sc2730_edata}, 263 263 { } 264 264 }; 265 + MODULE_DEVICE_TABLE(of, sc27xx_efuse_of_match); 265 266 266 267 static struct platform_driver sc27xx_efuse_driver = { 267 268 .probe = sc27xx_efuse_probe,