diff options
-rw-r--r-- | arch/sparc/kernel/vio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/vio.c b/arch/sparc/kernel/vio.c index 3e244f31e56b..8647fcc5ca6c 100644 --- a/arch/sparc/kernel/vio.c +++ b/arch/sparc/kernel/vio.c | |||
@@ -342,6 +342,7 @@ static void vio_remove(struct mdesc_handle *hp, u64 node) | |||
342 | printk(KERN_INFO "VIO: Removing device %s\n", dev_name(dev)); | 342 | printk(KERN_INFO "VIO: Removing device %s\n", dev_name(dev)); |
343 | 343 | ||
344 | device_unregister(dev); | 344 | device_unregister(dev); |
345 | put_device(dev); | ||
345 | } | 346 | } |
346 | } | 347 | } |
347 | 348 | ||