summaryrefslogtreecommitdiff
path: root/drivers/leds/flash/leds-ktd2692.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/flash/leds-ktd2692.c')
-rw-r--r--drivers/leds/flash/leds-ktd2692.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/flash/leds-ktd2692.c b/drivers/leds/flash/leds-ktd2692.c
index f341da1503a4..ed1f20a58bf6 100644
--- a/drivers/leds/flash/leds-ktd2692.c
+++ b/drivers/leds/flash/leds-ktd2692.c
@@ -274,7 +274,7 @@ static int ktd2692_parse_dt(struct ktd2692_context *led, struct device *dev,
struct device_node *child_node;
int ret;
- if (!dev_of_node(dev))
+ if (!np)
return -ENXIO;
led->ctrl_gpio = devm_gpiod_get(dev, "ctrl", GPIOD_ASIS);