From patchwork Sat May 31 06:01:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4274931 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 CE8DBBEEA7 for ; Sat, 31 May 2014 06:05:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BA52203AB for ; Sat, 31 May 2014 06:05:11 +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 2663E203AA for ; Sat, 31 May 2014 06:05:10 +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 1WqcN1-0007em-Ox; Sat, 31 May 2014 06:02:19 +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-0007cU-ME 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=1Dl91gKLArEnHzwlj+jCWB8k2ZDq4hQsJm7PT6ZVIXE=; b=qqnsZzxMDGabXySvPZ2nKx5GKS0XBCCSIzx/jHL+3LLHT/pOs6Oo4sh0skXkTAOsLZBSdlwE4hrGBxE//875Q7HHBUJ9Nh8y5q8wgEGQkRKwSRjiQuLTdgeb2mjAQZIojoVQV6H0QTYQAnOsh5DoeecJ4Yf4nG19oWnL1q1R/ec=; Received: from [5.18.98.7] (port=52298 helo=shc.zet) by smtp29.i.mail.ru with esmtpa (envelope-from ) id 1WqcMV-0007V2-1J; 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: avic: Remove #ifdef CONFIG_PM Date: Sat, 31 May 2014 10:01:32 +0400 Message-Id: <1401516095-31020-3-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_341574_15803CB0 X-CRM114-Status: GOOD ( 10.85 ) 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 AVIC 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/avic.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/mach-imx/avic.c b/arch/arm/mach-imx/avic.c index 9adcad2..374be0c 100644 --- a/arch/arm/mach-imx/avic.c +++ b/arch/arm/mach-imx/avic.c @@ -86,7 +86,6 @@ static struct mxc_extra_irq avic_extra_irq = { #endif }; -#ifdef CONFIG_PM static u32 avic_saved_mask_reg[2]; static void avic_irq_suspend(struct irq_data *d) @@ -108,11 +107,6 @@ static void avic_irq_resume(struct irq_data *d) __raw_writel(avic_saved_mask_reg[idx], avic_base + ct->regs.mask); } -#else -#define avic_irq_suspend NULL -#define avic_irq_resume NULL -#endif - static __init void avic_init_gc(int idx, unsigned int irq_start) { struct irq_chip_generic *gc;