diff options
Diffstat (limited to 'arch/um/drivers/net_kern.c')
-rw-r--r-- | arch/um/drivers/net_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 434ba121e3c..3b44b47c7e1 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -360,7 +360,7 @@ static struct platform_driver uml_net_driver = { | |||
360 | 360 | ||
361 | static void net_device_release(struct device *dev) | 361 | static void net_device_release(struct device *dev) |
362 | { | 362 | { |
363 | struct uml_net *device = dev->driver_data; | 363 | struct uml_net *device = dev_get_drvdata(dev); |
364 | struct net_device *netdev = device->dev; | 364 | struct net_device *netdev = device->dev; |
365 | struct uml_net_private *lp = netdev_priv(netdev); | 365 | struct uml_net_private *lp = netdev_priv(netdev); |
366 | 366 | ||
@@ -440,7 +440,7 @@ static void eth_configure(int n, void *init, char *mac, | |||
440 | device->pdev.id = n; | 440 | device->pdev.id = n; |
441 | device->pdev.name = DRIVER_NAME; | 441 | device->pdev.name = DRIVER_NAME; |
442 | device->pdev.dev.release = net_device_release; | 442 | device->pdev.dev.release = net_device_release; |
443 | device->pdev.dev.driver_data = device; | 443 | dev_set_drvdata(&device->pdev.dev, device); |
444 | if (platform_device_register(&device->pdev)) | 444 | if (platform_device_register(&device->pdev)) |
445 | goto out_free_netdev; | 445 | goto out_free_netdev; |
446 | SET_NETDEV_DEV(dev,&device->pdev.dev); | 446 | SET_NETDEV_DEV(dev,&device->pdev.dev); |