From patchwork Thu Feb 14 11:55:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Bilovol X-Patchwork-Id: 2141421 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id A2CC73FCFC for ; Thu, 14 Feb 2013 11:57:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934282Ab3BNLzl (ORCPT ); Thu, 14 Feb 2013 06:55:41 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:39455 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759713Ab3BNLzh (ORCPT ); Thu, 14 Feb 2013 06:55:37 -0500 Received: by mail-wi0-f169.google.com with SMTP id l13so7164459wie.4 for ; Thu, 14 Feb 2013 03:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=dIYYKBcNvRVY0a+CPnzixJ23WNUYzglaNolxkkR7YsY=; b=vAr+BFPhnOLg47L7qyGofMZlD7IiPVGU3Wnw50udwLnASKcAG2kNLaQ0/Bl7O87qmo 0jdRDOVeb6qqMyCURBWG6hhEJHTOgz0q2Jh10iZpOozHBGkEucqnjn3Be+oXwvHopAAo +buBW1ikMomTrkNA1a+CtL8na6mrQu9QhH1paoVFUm4p0KEDwJsVb7sZuvkIsRtAxxJg heBT+K3s5OEThfHPusxO1Ys2O0tRbE+0qYYl8aRUwInX0pXfADnggMN4qMFkEzRqtGgK siTbYE1rPGk8jQzojHYGVHK2qyyV3qbZc6wRy8BsPhxbSQvl8EWZc1g/RJuwcHMZ3lTx VTQQ== X-Received: by 10.194.235.6 with SMTP id ui6mr44913354wjc.12.1360842936351; Thu, 14 Feb 2013 03:55:36 -0800 (PST) Received: from localhost ([195.238.93.36]) by mx.google.com with ESMTPS id o13sm42690717wie.10.2013.02.14.03.55.32 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 14 Feb 2013 03:55:35 -0800 (PST) From: Ruslan Bilovol To: tony@atomide.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] ARM: OMAP2+: Move common part of late init into common function Date: Thu, 14 Feb 2013 13:55:22 +0200 Message-Id: <1360842924-32429-2-git-send-email-ruslan.bilovol@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360842924-32429-1-git-send-email-ruslan.bilovol@ti.com> References: <1360842924-32429-1-git-send-email-ruslan.bilovol@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Signed-off-by: Ruslan Bilovol --- arch/arm/mach-omap2/io.c | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 2c3fdd6..ace87c8 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c @@ -379,6 +379,12 @@ static void __init omap_hwmod_init_postsetup(void) omap_pm_if_early_init(); } +static void __init omap_common_late_init(void) +{ + omap_mux_late_init(); + omap2_common_pm_late_init(); +} + #ifdef CONFIG_SOC_OMAP2420 void __init omap2420_init_early(void) { @@ -402,8 +408,7 @@ void __init omap2420_init_early(void) void __init omap2420_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap2_pm_init(); omap2_clk_enable_autoidle_all(); } @@ -432,8 +437,7 @@ void __init omap2430_init_early(void) void __init omap2430_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap2_pm_init(); omap2_clk_enable_autoidle_all(); } @@ -505,48 +509,42 @@ void __init ti81xx_init_early(void) void __init omap3_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap3_pm_init(); omap2_clk_enable_autoidle_all(); } void __init omap3430_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap3_pm_init(); omap2_clk_enable_autoidle_all(); } void __init omap35xx_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap3_pm_init(); omap2_clk_enable_autoidle_all(); } void __init omap3630_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap3_pm_init(); omap2_clk_enable_autoidle_all(); } void __init am35xx_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap3_pm_init(); omap2_clk_enable_autoidle_all(); } void __init ti81xx_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap3_pm_init(); omap2_clk_enable_autoidle_all(); } @@ -598,8 +596,7 @@ void __init omap4430_init_early(void) void __init omap4430_init_late(void) { - omap_mux_late_init(); - omap2_common_pm_late_init(); + omap_common_late_init(); omap4_pm_init(); omap2_clk_enable_autoidle_all(); }