diff options
Diffstat (limited to 'arch/um/drivers/net_kern.c')
-rw-r--r-- | arch/um/drivers/net_kern.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 4cf31a2ae19c..84c73a300acb 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -268,9 +268,10 @@ void uml_net_user_timer_expire(unsigned long _conn) | |||
268 | static DEFINE_SPINLOCK(devices_lock); | 268 | static DEFINE_SPINLOCK(devices_lock); |
269 | static struct list_head devices = LIST_HEAD_INIT(devices); | 269 | static struct list_head devices = LIST_HEAD_INIT(devices); |
270 | 270 | ||
271 | static struct device_driver uml_net_driver = { | 271 | static struct platform_driver uml_net_driver = { |
272 | .name = DRIVER_NAME, | 272 | .driver = { |
273 | .bus = &platform_bus_type, | 273 | .name = DRIVER_NAME, |
274 | }, | ||
274 | }; | 275 | }; |
275 | static int driver_registered; | 276 | static int driver_registered; |
276 | 277 | ||
@@ -317,7 +318,7 @@ static int eth_configure(int n, void *init, char *mac, | |||
317 | 318 | ||
318 | /* sysfs register */ | 319 | /* sysfs register */ |
319 | if (!driver_registered) { | 320 | if (!driver_registered) { |
320 | driver_register(¨_net_driver); | 321 | platform_driver_register(¨_net_driver); |
321 | driver_registered = 1; | 322 | driver_registered = 1; |
322 | } | 323 | } |
323 | device->pdev.id = n; | 324 | device->pdev.id = n; |