diff options
Diffstat (limited to 'arch/um/drivers/net_kern.c')
-rw-r--r-- | arch/um/drivers/net_kern.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 3c6c44ca1ffa..ca71577f3630 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -368,7 +368,6 @@ static struct platform_driver uml_net_driver = { | |||
368 | .name = DRIVER_NAME, | 368 | .name = DRIVER_NAME, |
369 | }, | 369 | }, |
370 | }; | 370 | }; |
371 | static int driver_registered; | ||
372 | 371 | ||
373 | static void net_device_release(struct device *dev) | 372 | static void net_device_release(struct device *dev) |
374 | { | 373 | { |
@@ -383,6 +382,12 @@ static void net_device_release(struct device *dev) | |||
383 | free_netdev(netdev); | 382 | free_netdev(netdev); |
384 | } | 383 | } |
385 | 384 | ||
385 | /* | ||
386 | * Ensures that platform_driver_register is called only once by | ||
387 | * eth_configure. Will be set in an initcall. | ||
388 | */ | ||
389 | static int driver_registered; | ||
390 | |||
386 | static void eth_configure(int n, void *init, char *mac, | 391 | static void eth_configure(int n, void *init, char *mac, |
387 | struct transport *transport) | 392 | struct transport *transport) |
388 | { | 393 | { |