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 fe865d9a3721..b489aad12853 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -284,9 +284,10 @@ void uml_net_user_timer_expire(unsigned long _conn) | |||
284 | static DEFINE_SPINLOCK(devices_lock); | 284 | static DEFINE_SPINLOCK(devices_lock); |
285 | static struct list_head devices = LIST_HEAD_INIT(devices); | 285 | static struct list_head devices = LIST_HEAD_INIT(devices); |
286 | 286 | ||
287 | static struct device_driver uml_net_driver = { | 287 | static struct platform_driver uml_net_driver = { |
288 | .name = DRIVER_NAME, | 288 | .driver = { |
289 | .bus = &platform_bus_type, | 289 | .name = DRIVER_NAME, |
290 | }, | ||
290 | }; | 291 | }; |
291 | static int driver_registered; | 292 | static int driver_registered; |
292 | 293 | ||
@@ -333,7 +334,7 @@ static int eth_configure(int n, void *init, char *mac, | |||
333 | 334 | ||
334 | /* sysfs register */ | 335 | /* sysfs register */ |
335 | if (!driver_registered) { | 336 | if (!driver_registered) { |
336 | driver_register(¨_net_driver); | 337 | platform_driver_register(¨_net_driver); |
337 | driver_registered = 1; | 338 | driver_registered = 1; |
338 | } | 339 | } |
339 | device->pdev.id = n; | 340 | device->pdev.id = n; |