Skip to content

Commit

Permalink
net: hisilicon: Remove .owner assignment from platform_driver
Browse files Browse the repository at this point in the history
platform_driver doesn't need to set .owner, because
platform_driver_register() will set it.

Signed-off-by: huangdaode <huangdaode@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
huangdaode authored and David S. Miller committed Nov 1, 2015
1 parent 76e398a commit 1cf7d8d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/hisilicon/hns/hns_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,6 @@ MODULE_DEVICE_TABLE(of, hns_enet_of_match);
static struct platform_driver hns_nic_dev_driver = {
.driver = {
.name = "hns-nic",
.owner = THIS_MODULE,
.of_match_table = hns_enet_of_match,
},
.probe = hns_nic_dev_probe,
Expand Down

0 comments on commit 1cf7d8d

Please sign in to comment.