--- zzzz-none-000/linux-3.10.107/drivers/net/ethernet/amd/sunlance.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/ethernet/amd/sunlance.c 2021-02-04 17:41:59.000000000 +0000 @@ -80,7 +80,6 @@ #include #include #include -#include #include #include #include /* Used for the temporal inet entries and routing */ @@ -1470,7 +1469,7 @@ goto fail; } - dev_set_drvdata(&op->dev, lp); + platform_set_drvdata(op, lp); printk(KERN_INFO "%s: LANCE %pM\n", dev->name, dev->dev_addr); @@ -1501,7 +1500,7 @@ static int sunlance_sbus_remove(struct platform_device *op) { - struct lance_private *lp = dev_get_drvdata(&op->dev); + struct lance_private *lp = platform_get_drvdata(op); struct net_device *net_dev = lp->dev; unregister_netdev(net_dev); @@ -1510,8 +1509,6 @@ free_netdev(net_dev); - dev_set_drvdata(&op->dev, NULL); - return 0; } @@ -1527,7 +1524,6 @@ static struct platform_driver sunlance_sbus_driver = { .driver = { .name = "sunlance", - .owner = THIS_MODULE, .of_match_table = sunlance_sbus_match, }, .probe = sunlance_sbus_probe,