summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.c b/device.c
index f484c28..7d606c6 100644
--- a/device.c
+++ b/device.c
@@ -61,6 +61,9 @@ void device_unlock(void)
static int set_device_state(struct device *dev, bool state)
{
+ if (dev->external)
+ return 0;
+
if (state)
system_if_up(dev);
else