Received: by 10.192.165.148 with SMTP id m20csp3702330imm; Mon, 23 Apr 2018 10:49:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sdDbiT0IUUh6Vv6LXFpc6vggwCNXAxmxlxVNoHGmTcgT2sy+O69E4SfgkVkSjlC4EaAjC X-Received: by 10.101.92.134 with SMTP id a6mr2307008pgt.273.1524505798549; Mon, 23 Apr 2018 10:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524505798; cv=none; d=google.com; s=arc-20160816; b=Rjjq6hltu4aBF5D7VxCZ9rbpQr9Lg0CPGaz1nwuW3fnsuCFyWSWYQyGeQkEHjmZlzQ g8Rr6bLAbv0D/k6BDQrb19hjr05xKCSBvUc4Grj0OJToW+Jb6W3TUkHPIwkaqKqr26sZ qTQOJW95YYpN4v/uSb0n2HU1KP8qt7gc2gNVUOUwqtCEtm0ItnJyObMH2hVkXqdwbAku Z/s8FapIA3oK3vEblr+54r83pxlFPukandhXDIhyQuZ3oNALpMojeExIGzuACeBNwDTE ePoKoCtpQxFJiNwoCMaZxNu5jKoTOEtqAH7DE2RLoEUmb77+sV91XrFwuP4CYiGc4Rry sZyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6RSuAlP33gFzLz3JuUrmJHi8q22DfficiEsTzEchhcw=; b=j2LhaRIWtpNeP79/mAICB1JPD8V2gggcIZhla4j/bNWH/0g3xVrrhBU1OrbzDl1+0R 4vmHwb50Cqhmtjj94i3bIA95/8GA9GWeFwrc2mN7CW5QE3YHn5eypZjvLqK2ZXTJTkQV kmjOG0whQK4tZmgcmAI2eXTwTouxT2/cTjO3pR2eIrkjguhlClsAQ9NFegxQtApT1rxj fLFOv7sgJmScy/nM20b+VujkOXQf2hflSwHeYspmoPvxgqS81of1OO+tObv95Xw3LiYb vM3j1X2hkprpvdRx8rTjeCoCvqwh04SU6p/LG0NyX8BGGMMzoPZZ/2HkrIhy2h3jGTNS xqyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 87si7587402pfo.137.2018.04.23.10.49.44; Mon, 23 Apr 2018 10:49:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932349AbeDWRqg (ORCPT + 99 others); Mon, 23 Apr 2018 13:46:36 -0400 Received: from muru.com ([72.249.23.125]:38360 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932301AbeDWRqW (ORCPT ); Mon, 23 Apr 2018 13:46:22 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 63D4A80F3; Mon, 23 Apr 2018 17:48:04 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Greg Kroah-Hartman , Nishanth Menon , Suman Anna , Tero Kristo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 07/16] bus: ti-sysc: Handle simple-bus for nested children Date: Mon, 23 Apr 2018 10:45:40 -0700 Message-Id: <20180423174549.57412-8-tony@atomide.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180423174549.57412-1-tony@atomide.com> References: <20180423174549.57412-1-tony@atomide.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Otherwise child devices that some interconnect target module devices have won't probe using simple-bus. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1314,6 +1314,11 @@ static void ti_sysc_idle(struct work_struct *work) pm_runtime_put_sync(ddata->dev); } +static const struct of_device_id sysc_match_table[] = { + { .compatible = "simple-bus", }, + { /* sentinel */ }, +}; + static int sysc_probe(struct platform_device *pdev) { struct ti_sysc_platform_data *pdata = dev_get_platdata(&pdev->dev); @@ -1375,8 +1380,8 @@ static int sysc_probe(struct platform_device *pdev) sysc_show_registers(ddata); ddata->dev->type = &sysc_device_type; - error = of_platform_populate(ddata->dev->of_node, - NULL, pdata ? pdata->auxdata : NULL, + error = of_platform_populate(ddata->dev->of_node, sysc_match_table, + pdata ? pdata->auxdata : NULL, ddata->dev); if (error) goto err; -- 2.17.0