fsi: Add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Thu, 13 May 2021 08:57:29 +0000 (16:57 +0800)
committerJoel Stanley <joel@jms.id.au>
Fri, 4 Jun 2021 04:40:45 +0000 (14:10 +0930)
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: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1620896249-52769-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-master-aspeed.c
drivers/fsi/fsi-master-ast-cf.c
drivers/fsi/fsi-master-gpio.c
drivers/fsi/fsi-occ.c

index 90dbe58..dbad731 100644 (file)
@@ -645,6 +645,7 @@ static const struct of_device_id fsi_master_aspeed_match[] = {
        { .compatible = "aspeed,ast2600-fsi-master" },
        { },
 };
+MODULE_DEVICE_TABLE(of, fsi_master_aspeed_match);
 
 static struct platform_driver fsi_master_aspeed_driver = {
        .driver = {
index 57a779a..70c03e3 100644 (file)
@@ -1427,6 +1427,7 @@ static const struct of_device_id fsi_master_acf_match[] = {
        { .compatible = "aspeed,ast2500-cf-fsi-master" },
        { },
 };
+MODULE_DEVICE_TABLE(of, fsi_master_acf_match);
 
 static struct platform_driver fsi_master_acf = {
        .driver = {
index aa97c4a..7d5f29b 100644 (file)
@@ -882,6 +882,7 @@ static const struct of_device_id fsi_master_gpio_match[] = {
        { .compatible = "fsi-master-gpio" },
        { },
 };
+MODULE_DEVICE_TABLE(of, fsi_master_gpio_match);
 
 static struct platform_driver fsi_master_gpio_driver = {
        .driver = {
index 10ca2e2..f9a8808 100644 (file)
@@ -635,6 +635,7 @@ static const struct of_device_id occ_match[] = {
        },
        { },
 };
+MODULE_DEVICE_TABLE(of, occ_match);
 
 static struct platform_driver occ_driver = {
        .driver = {