From 9fe20c8cbc4249c13d6f305adc91f4bc695f7c23 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 3 Mar 2012 20:55:39 +0100 Subject: [PATCH] do not bring down hotplug devices --- device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device.c b/device.c index 8f0e823..ab9138b 100644 --- a/device.c +++ b/device.c @@ -312,7 +312,8 @@ void device_release(struct device_user *dep) return; device_broadcast_event(dev, DEV_EVENT_TEARDOWN); - dev->set_state(dev, false); + if (!dep->hotplug) + dev->set_state(dev, false); device_broadcast_event(dev, DEV_EVENT_DOWN); } -- 2.25.1