diff options
Diffstat (limited to 'drivers/leds/leds-an30259a.c')
-rw-r--r-- | drivers/leds/leds-an30259a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-an30259a.c b/drivers/leds/leds-an30259a.c index 82350a28a564..8ec23ccd02d6 100644 --- a/drivers/leds/leds-an30259a.c +++ b/drivers/leds/leds-an30259a.c @@ -202,7 +202,7 @@ error: static int an30259a_dt_init(struct i2c_client *client, struct an30259a *chip) { - struct device_node *np = client->dev.of_node, *child; + struct device_node *np = dev_of_node(&client->dev), *child; int count, ret; int i = 0; const char *str; |