summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--system-dummy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/system-dummy.c b/system-dummy.c
index aeba9db..7a5c839 100644
--- a/system-dummy.c
+++ b/system-dummy.c
@@ -124,7 +124,9 @@ void system_if_clear_state(struct device *dev)
int system_if_check(struct device *dev)
{
- device_set_present(dev, true);
+ if (dev->type == &simple_device_type)
+ device_set_present(dev, true);
+
device_set_link(dev, true);
return 0;