summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-is31fl319x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-is31fl319x.c')
-rw-r--r--drivers/leds/leds-is31fl319x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-is31fl319x.c b/drivers/leds/leds-is31fl319x.c
index b039ffa33559..e6d185ad0b7e 100644
--- a/drivers/leds/leds-is31fl319x.c
+++ b/drivers/leds/leds-is31fl319x.c
@@ -202,7 +202,7 @@ static int is31fl319x_parse_child_dt(const struct device *dev,
static int is31fl319x_parse_dt(struct device *dev,
struct is31fl319x_chip *is31)
{
- struct device_node *np = dev->of_node, *child;
+ struct device_node *np = dev_of_node(dev), *child;
int count;
int ret;