ehea: add missing MODULE_DEVICE_TABLE
authorQiheng Lin <linqiheng@huawei.com>
Fri, 9 Apr 2021 11:09:11 +0000 (19:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Apr 2021 23:42:38 +0000 (16:42 -0700)
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: Qiheng Lin <linqiheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c

index c2e7404757869ca227f49df08b1890552d28f44c..ea55314b209dbf407443c448c221a247341c021c 100644 (file)
@@ -109,6 +109,7 @@ static const struct of_device_id ehea_device_table[] = {
        },
        {},
 };
+MODULE_DEVICE_TABLE(of, ehea_device_table);
 
 static struct platform_driver ehea_driver = {
        .driver = {