From patchwork Thu Oct 31 16:10:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 3121141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 58DDCC146B for ; Thu, 31 Oct 2013 16:13:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F79120445 for ; Thu, 31 Oct 2013 16:13:56 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 06FEB20443 for ; Thu, 31 Oct 2013 16:13:55 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VburN-0002Hc-VD; Thu, 31 Oct 2013 16:12:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vbuqp-0004QC-2g; Thu, 31 Oct 2013 16:12:03 +0000 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vbuqb-0004Le-9I for linux-arm-kernel@lists.infradead.org; Thu, 31 Oct 2013 16:11:49 +0000 Received: by mail-pd0-f172.google.com with SMTP id w10so2582204pde.17 for ; Thu, 31 Oct 2013 09:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=VL1KrZjCH8EfQtYKjuANPtt8BW4pQ05GTueLSNB27vI=; b=s4EyTLF4Gv+ij8YbE5EeX4tKo0ECcChaWOSlbF5pKeldApU0vCvE3F8m6OBbf/jL47 NPF9U+XA187YY937sfiKaWYsuqYluZ8tO2ayq9oIiDGQ+V4CMUVmIEEPAQCkET9iTmsf ZHPaxFeKnxHW+3NE5U96U/GL0HwE775hc2OENtpknEExi0Tpg+P4gViiWHFuDV7/I2kK Aq736EUkbEWB2Qd4fMBx8tCQlNcWj9XPv6MKp73LYfM6b1adxWrZBM3SjSJUYSOBAa1c iscravZyNRAnUOrOZdsnFBPNqBrievq1J+Xlmm+U2Gu+Phz4Gqr+7M/vxyYDGYilGOuU 363g== X-Received: by 10.68.216.132 with SMTP id oq4mr2772683pbc.50.1383235872151; Thu, 31 Oct 2013 09:11:12 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id zq10sm6432527pab.6.2013.10.31.09.10.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 31 Oct 2013 09:11:01 -0700 (PDT) From: Soren Brinkmann To: Michal Simek , Russell King Subject: [PATCH 4/6] arm: zynq: Use of_platform_populate instead of bus_probe Date: Thu, 31 Oct 2013 09:10:17 -0700 Message-Id: <1383235819-2552-5-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: <1383235819-2552-1-git-send-email-soren.brinkmann@xilinx.com> References: <1383235819-2552-1-git-send-email-soren.brinkmann@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131031_121149_426020_7A9BE206 X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -1.9 (-) Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?S=C3=B6ren=20Brinkmann?= X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All new boards should be using this function instead of of_platform_bus_probe. Two side effects: 1. Possible to probe node which are not in the bus 2. Remove bus_id table from platform code Signed-off-by: Soren Brinkmann --- arch/arm/mach-zynq/common.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c index 5f252569c689..5690925519bf 100644 --- a/arch/arm/mach-zynq/common.c +++ b/arch/arm/mach-zynq/common.c @@ -39,11 +39,6 @@ void __iomem *zynq_scu_base; -static struct of_device_id zynq_of_bus_ids[] __initdata = { - { .compatible = "simple-bus", }, - {} -}; - /** * zynq_init_machine - System specific initialization, intended to be * called from board specific initialization. @@ -55,7 +50,7 @@ static void __init zynq_init_machine(void) */ l2x0_of_init(0x02060000, 0xF0F0FFFF); - of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL); + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } static void __init zynq_timer_init(void)