Skip to content

Commit dc3d88a

Browse files
krzkgregkh
authored andcommitted
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>
1 parent 23fd602 commit dc3d88a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/nvmem/sc27xx-efuse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ static const struct of_device_id sc27xx_efuse_of_match[] = {
262262
{ .compatible = "sprd,sc2730-efuse", .data = &sc2730_edata},
263263
{ }
264264
};
265+
MODULE_DEVICE_TABLE(of, sc27xx_efuse_of_match);
265266

266267
static struct platform_driver sc27xx_efuse_driver = {
267268
.probe = sc27xx_efuse_probe,

0 commit comments

Comments
 (0)