From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932968AbcBAOXB (ORCPT ); Mon, 1 Feb 2016 09:23:01 -0500 Received: from gloria.sntech.de ([95.129.55.99]:59705 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932417AbcBAOW5 (ORCPT ); Mon, 1 Feb 2016 09:22:57 -0500 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Kefeng Wang Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Shawn Guo , Russell King , Catalin Marinas , Hauke Mehrtens , Rob Herring , Masahiro Yamada , guohanjun@huawei.com, Nicolas Ferre , Ray Jui , Lee Jones , Krzysztof Halasa , Kukjin Kim , Rob Herring , Santosh Shilimkar , Roland Stigge , Jason Cooper , Haojian Zhuang , Viresh Kumar , Shiraz Hashim , Tony Prisk Subject: Re: [PATCH v2 01/15] arm: use of_platform_default_populate() to populate default bus Date: Mon, 01 Feb 2016 15:22:44 +0100 Message-ID: <1694609.jjsREDbl4R@diego> User-Agent: KMail/4.14.10 (Linux/4.2.0-1-amd64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <1453881180-12296-1-git-send-email-wangkefeng.wang@huawei.com> References: <1453868872-26300-2-git-send-email-wangkefeng.wang@huawei.com> <1453881180-12296-1-git-send-email-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 27. Januar 2016, 15:53:00 schrieb Kefeng Wang: > Use helper of_platform_default_populate() in linux/of_platform > when possible, instead of calling of_platform_populate() with > the default match table. > > Signed-off-by: Kefeng Wang > --- > diff --git a/arch/arm/mach-rockchip/rockchip.c > b/arch/arm/mach-rockchip/rockchip.c index 3f07cc5..07ef8ef 100644 > --- a/arch/arm/mach-rockchip/rockchip.c > +++ b/arch/arm/mach-rockchip/rockchip.c > @@ -73,7 +73,7 @@ static void __init rockchip_timer_init(void) > static void __init rockchip_dt_init(void) > { > rockchip_suspend_init(); > - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); > + of_platform_default_populate(NULL, NULL, NULL); > platform_device_register_simple("cpufreq-dt", 0, NULL, 0); > } sounds sensible, so Acked-by: Heiko Stuebner