From patchwork Mon May 25 14:53:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 6475431 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6D5539F1CC for ; Mon, 25 May 2015 15:06:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60ACA20381 for ; Mon, 25 May 2015 15:06:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36DFF20148 for ; Mon, 25 May 2015 15:06:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751040AbbEYO6L (ORCPT ); Mon, 25 May 2015 10:58:11 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34648 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750893AbbEYO6I (ORCPT ); Mon, 25 May 2015 10:58:08 -0400 Received: by wicmc15 with SMTP id mc15so42510158wic.1; Mon, 25 May 2015 07:58:07 -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=SGaAq+sKQgqgj/zUi2/mD1ly+F9BICEq/BBYpbVssl4=; b=SJ+dfflAGmgv+aR/vRs33+dfNn6em4bi1eJ8Z1a57lMUMpbaTdJg3o1iopA5qS8aqn lL/8IiRh6KRidqze0njX7vshBMo4GfNN9b/7/CjXmioFNcLavB8TaivJ07jC8gxwFHpD FlMCw+BMHnl1zPe2s3D8KRmiKrbvAehJhPq58Y6u9DeGmUEkqwEpzsP2tBOpYbgfdkeO Zg9mgXTABt388bqVxCMbts26RPvnrTQxelOqO8bePRlAyoOkSW07hu8lWy2+pobIeZ9R iOwMf4GM1sEIvoU98hvn1KOMI2wTe8SNXlTXfZaemBhm/nRxFlaPRWYnN2fvFroanME1 zNrQ== X-Received: by 10.194.61.236 with SMTP id t12mr31644878wjr.59.1432565887784; Mon, 25 May 2015 07:58:07 -0700 (PDT) Received: from cizrna.lan ([109.72.12.80]) by mx.google.com with ESMTPSA id ez19sm12258917wid.19.2015.05.25.07.58.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2015 07:58:06 -0700 (PDT) From: Tomeu Vizoso To: linux-arm-kernel@lists.infradead.org Cc: =?UTF-8?q?St=C3=A9phane=20Marchesin?= , Thierry Reding , Dmitry Torokhov , Alexander Holler , Grant Likely , Rob Herring , Mark Rutland , Tomeu Vizoso , Russell King , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/21] ARM: EXYNOS: Register drivers before devices Date: Mon, 25 May 2015 16:53:08 +0200 Message-Id: <1432565608-26036-5-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432565608-26036-1-git-send-email-tomeu.vizoso@collabora.com> References: <1432565608-26036-1-git-send-email-tomeu.vizoso@collabora.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham 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 So devices can be probed on demand, we need to have the drivers already registered as we don't have enough information to register a driver on demand. Signed-off-by: Tomeu Vizoso --- arch/arm/mach-exynos/exynos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 5917a30..3c98c92 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -110,6 +110,8 @@ void __init exynos_sysram_init(void) static void __init exynos_init_late(void) { + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); + if (of_machine_is_compatible("samsung,exynos5440")) /* to be supported later */ return; @@ -246,8 +248,6 @@ static void __init exynos_dt_machine_init(void) platform_device_register(&exynos_cpuidle); platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); - - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } static char const *const exynos_dt_compat[] __initconst = {