]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nvmem: sprd: Add missing MODULE_DEVICE_TABLE
authorBixuan Cui <cuibixuan@huawei.com>
Sat, 10 Apr 2021 03:50:33 +0000 (11:50 +0800)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 12 Apr 2021 08:35:49 +0000 (09:35 +0100)
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
drivers/nvmem/sprd-efuse.c

index 59523245db8a54f1825acaba2386b91b50b8e244..5d394559edf2afa1e50ed4752ed5273712d97b11 100644 (file)
@@ -425,6 +425,7 @@ static const struct of_device_id sprd_efuse_of_match[] = {
        { .compatible = "sprd,ums312-efuse", .data = &ums312_data },
        { }
 };
+MODULE_DEVICE_TABLE(of, sprd_efuse_of_match);
 
 static struct platform_driver sprd_efuse_driver = {
        .probe = sprd_efuse_probe,