Return-path: Received: from mail-pl0-f68.google.com ([209.85.160.68]:42948 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965768AbeEIWra (ORCPT ); Wed, 9 May 2018 18:47:30 -0400 Received: by mail-pl0-f68.google.com with SMTP id u6-v6so93551pls.9 for ; Wed, 09 May 2018 15:47:30 -0700 (PDT) From: Steve Longerbeam To: Yong Zhi , Sakari Ailus , Mauro Carvalho Chehab , Laurent Pinchart , niklas.soderlund@ragnatech.se, Sebastian Reichel , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, Steve Longerbeam Subject: [PATCH v4 10/14] media: staging/imx: of: Remove recursive graph walk Date: Wed, 9 May 2018 15:46:59 -0700 Message-Id: <1525906023-827-11-git-send-email-steve_longerbeam@mentor.com> In-Reply-To: <1525906023-827-1-git-send-email-steve_longerbeam@mentor.com> References: <1525906023-827-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-media-owner@vger.kernel.org List-ID: After moving to subdev notifiers, it's no longer necessary to recursively walk the OF graph, because the subdev notifiers will discover and add devices from the graph for us. So the recursive of_parse_subdev() function is gone, replaced with of_add_csi() which adds only the CSI port fwnodes to the imx-media root notifier. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-of.c | 106 +++---------------------------- 1 file changed, 8 insertions(+), 98 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-of.c b/drivers/staging/media/imx/imx-media-of.c index acde372..1c91754 100644 --- a/drivers/staging/media/imx/imx-media-of.c +++ b/drivers/staging/media/imx/imx-media-of.c @@ -20,74 +20,19 @@ #include