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 cb0d9cf3ad..2e393505d1 100644
--- a/drivers/misc/state.c
+++ b/drivers/misc/state.c
@@ -14,7 +14,7 @@
static int state_probe(struct device_d *dev)
{
- struct device_node *np = dev->device_node;
+ struct device_node *np = dev->of_node;
struct state *state;
bool readonly = false;
int ret;