Skip to content

Commit

Permalink
ehea: add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Qiheng Lin authored and David S. Miller committed Apr 11, 2021
1 parent 23cfa4d commit 95291ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/ibm/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 95291ce

Please sign in to comment.