summaryrefslogtreecommitdiffstats
path: root/drivers/misc/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/state.c')
-rw-r--r--drivers/misc/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/state.c b/drivers/misc/state.c
index 98ed42e75..d7e385d0b 100644
--- a/drivers/misc/state.c
+++ b/drivers/misc/state.c
@@ -28,7 +28,7 @@ static int state_probe(struct device_d *dev)
bool readonly = false;
int ret;
- state = state_new_from_node(np, NULL, 0, 0, readonly);
+ state = state_new_from_node(np, readonly);
if (IS_ERR(state)) {
int ret = PTR_ERR(state);
if (ret == -ENODEV)