aboutsummaryrefslogtreecommitdiff
path: root/frontend/common/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/common/input.c')
-rw-r--r--frontend/common/input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/common/input.c b/frontend/common/input.c
index bdeebbe..c6243c9 100644
--- a/frontend/common/input.c
+++ b/frontend/common/input.c
@@ -541,7 +541,10 @@ int in_set_config(int dev_id, int what, const void *val, int size)
return 0;
}
- return DRV(dev->drv_id).set_config(dev->drv_data, what, *ival);
+ if (dev->probed)
+ return DRV(dev->drv_id).set_config(dev->drv_data, what, *ival);
+
+ return -1;
}
const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix)