Received: by 10.192.165.148 with SMTP id m20csp3704934imm; Mon, 23 Apr 2018 10:52:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx488f8peLxsKDTebH2EQ6PyhpmNzKEo/7um4y+7SofO2JKJ3jvxfgndbAxtCvEZ6Fe0/fC1F X-Received: by 10.98.11.3 with SMTP id t3mr20965992pfi.32.1524505970709; Mon, 23 Apr 2018 10:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524505970; cv=none; d=google.com; s=arc-20160816; b=ZwDEEx5x/dkbMhnjaFI97MfJ6wPHyyJQ/6SkIx4+IBx+q1Kf5313cbJ91oLJocpu/Z pflGJ9gTiEEmNag4Z3qwK9Wcf/hCE/XcdLjWHApQs0+kWmrhfG8XK1eugbgqtETvpcW+ yJqlbG+HlghM5Af/x8zBwWHreHkZPDiVUEm/vfC3v/9O7MiXv/PywWIKt+TNDk8k2HBT LVIpGUmzUey7rhr+05HY4ANFCb9uvaAs1GLqLw+yEXr0T6Ax+QktDVbObGqhNAuDAtG3 tu1JL7Vs4nfP4+zjoWT/rN91PkgNZTnAXZ2xPH3KvEnycRAaVyeDdbg5kd5LmLHcDbCn rszA== 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=K3FtbNsENvxXyHc4bOWMf58uuVuoADwRXkMD0w0Ki90=; b=v99MTZo0Eb3nisFG/TolBbhn2ZvzTAQp3Igyjte9TteyBNmq7Vmnnr6xmXI6azImLt v0w6kN6666tFoZo4BoFbEc49XHVvHJeLsBHGzQmXMS8rFfTqEPMtBcos5NReNfQYgIEu ZqjLDJbw6f1gLZ5mDq//A+sPmkQMEGmF/ljrCfSrALJoag1EIi4n8YPe4PxGH2px6MVX EFZRO72valhp4piuDGz/qeIPhU4rdIJ4lGsNxXW6wPQNRj/v5+YYNsNv1yP9c+Y8+B4S I1b1PH9kOvcubn+jyyoHg2BgYbv4bN31BG2CoX2NnNpUYrgTSo+aL9yccwOIb0KtX/qA S5uQ== 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.52.36; Mon, 23 Apr 2018 10:52:50 -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 S932363AbeDWRuq (ORCPT + 99 others); Mon, 23 Apr 2018 13:50:46 -0400 Received: from muru.com ([72.249.23.125]:38352 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932157AbeDWRqT (ORCPT ); Mon, 23 Apr 2018 13:46:19 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 86E5A8394; Mon, 23 Apr 2018 17:48:02 +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, Laurent Pinchart , Tomi Valkeinen Subject: [PATCH 06/16] ARM: OMAP2+: Make display related init into device_initcall Date: Mon, 23 Apr 2018 10:45:39 -0700 Message-Id: <20180423174549.57412-7-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 We can initialize almost everything at normal module_init time with ti-sysc except for clocks and timers. To prepare for that, let's make display init into device_initcall as otherwise we'll be calling of_platform_populate() before the parent has probed. Cc: Laurent Pinchart Cc: Tomi Valkeinen Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-generic.c | 2 -- arch/arm/mach-omap2/common.h | 2 -- arch/arm/mach-omap2/display.c | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -31,8 +31,6 @@ static const struct of_device_id omap_dt_match_table[] __initconst = { static void __init __maybe_unused omap_generic_init(void) { pdata_quirks_init(omap_dt_match_table); - - omapdss_init_of(); omap_soc_device_init(); } diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h @@ -352,7 +352,5 @@ extern int omap_dss_reset(struct omap_hwmod *); /* SoC specific clock initializer */ int omap_clk_init(void); -int __init omapdss_init_of(void); - #endif /* __ASSEMBLER__ */ #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */ diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -385,7 +385,7 @@ static struct device_node * __init omapdss_find_dss_of_node(void) return NULL; } -int __init omapdss_init_of(void) +static int __init omapdss_init_of(void) { int r; struct device_node *node; @@ -415,3 +415,4 @@ int __init omapdss_init_of(void) return omapdss_init_fbdev(); } +omap_device_initcall(omapdss_init_of); -- 2.17.0