From patchwork Sat May 31 06:01:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4274911 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 391DDBEEA7 for ; Sat, 31 May 2014 06:05:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AF822039E for ; Sat, 31 May 2014 06:05:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD63420397 for ; Sat, 31 May 2014 06:05:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqcN6-0007fP-VY; Sat, 31 May 2014 06:02:24 +0000 Received: from smtp29.i.mail.ru ([94.100.177.89]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqcMt-0007cV-Ln for linux-arm-kernel@lists.infradead.org; Sat, 31 May 2014 06:02:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=y2x6Z3/e6CJOgAKrEaqYI71L7lhYCjGOIjsovZwmNRI=; b=k+6aZUog8BnHAKTMRGVflF54iRWWCQRIGt/4iWBvSMFzX6xu/5DGpQqSFa9F+amoUMWTZA/NVJZeOtkRTd6nKCC6t0xl2orxxrW7abg/5aY4yTKvi0efMZt6AgGGGXrCYzqZHbkoPMQCDy31C/EWx3AVlzq6LDO/grc7K92m8uI=; Received: from [5.18.98.7] (port=52298 helo=shc.zet) by smtp29.i.mail.ru with esmtpa (envelope-from ) id 1WqcMV-0007V2-BU; Sat, 31 May 2014 10:01:47 +0400 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] ARM: i.MX: tzic: Remove #ifdef CONFIG_PM Date: Sat, 31 May 2014 10:01:33 +0400 Message-Id: <1401516095-31020-4-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1401516095-31020-1-git-send-email-shc_work@mail.ru> References: <1401516095-31020-1-git-send-email-shc_work@mail.ru> X-Mras: Ok X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140530_230212_340793_39C7A7C9 X-CRM114-Status: GOOD ( 11.09 ) X-Spam-Score: -0.1 (/) Cc: Alexander Shiyan , Sascha Hauer , Shawn Guo 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=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Suspend/Resume functions are not called by generic irqchip if PM is not enabled. This patch removes excess #ifdef CONFIG_PM from i.MX TZIC driver, so these functions will always be compiled in, that increase compile coverage of this driver. Signed-off-by: Alexander Shiyan --- arch/arm/mach-imx/tzic.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/mach-imx/tzic.c b/arch/arm/mach-imx/tzic.c index b5fc0c7..534431e 100644 --- a/arch/arm/mach-imx/tzic.c +++ b/arch/arm/mach-imx/tzic.c @@ -76,7 +76,6 @@ static int tzic_set_irq_fiq(unsigned int irq, unsigned int type) #define tzic_set_irq_fiq NULL #endif -#ifdef CONFIG_PM static void tzic_irq_suspend(struct irq_data *d) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); @@ -93,11 +92,6 @@ static void tzic_irq_resume(struct irq_data *d) tzic_base + TZIC_WAKEUP0(idx)); } -#else -#define tzic_irq_suspend NULL -#define tzic_irq_resume NULL -#endif - static struct mxc_extra_irq tzic_extra_irq = { #ifdef CONFIG_FIQ .set_irq_fiq = tzic_set_irq_fiq,