From 8e338812615c72dad0fe17ea5a135ffdcc7b25a7 Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Tue, 28 Jul 2020 21:12:51 +0300 Subject: [PATCH] media: i2c: dummy: fix DT parse This fixes the parse of dummy field Signed-off-by: Vladimir Barinov --- drivers/media/i2c/soc_camera/dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/soc_camera/dummy.c b/drivers/media/i2c/soc_camera/dummy.c index 346b5dd..3be2728 100644 --- a/drivers/media/i2c/soc_camera/dummy.c +++ b/drivers/media/i2c/soc_camera/dummy.c @@ -386,7 +386,7 @@ static int dummy_parse_dt(struct device_node *np, struct dummy_priv *priv) if (!endpoint) break; - of_property_read_u32(endpoint, "dummy", &priv->dummy); + of_property_read_u32(np, "dummy", &priv->dummy); if (of_property_read_u32(np, "dummy,width", &priv->max_width)) priv->max_width = width; -- 2.7.4