Skip to content

Commit 154c1ec

Browse files
krzkgregkh
authored andcommitted
nvmem: sprd: 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-6-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dc3d88a commit 154c1ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/nvmem/sprd-efuse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ static const struct of_device_id sprd_efuse_of_match[] = {
426426
{ .compatible = "sprd,ums312-efuse", .data = &ums312_data },
427427
{ }
428428
};
429+
MODULE_DEVICE_TABLE(of, sprd_efuse_of_match);
429430

430431
static struct platform_driver sprd_efuse_driver = {
431432
.probe = sprd_efuse_probe,

0 commit comments

Comments
 (0)