From patchwork Fri Mar 25 16:21:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Jones X-Patchwork-Id: 662841 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2PGNEns006288 for ; Fri, 25 Mar 2011 16:23:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754030Ab1CYQXN (ORCPT ); Fri, 25 Mar 2011 12:23:13 -0400 Received: from mail1.matrix-vision.com ([78.47.19.71]:39464 "EHLO mail1.matrix-vision.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753998Ab1CYQXM (ORCPT ); Fri, 25 Mar 2011 12:23:12 -0400 Received: from mail1.matrix-vision.com (localhost [127.0.0.1]) by mail1.matrix-vision.com (Postfix) with ESMTP id AEEB8721AD for ; Fri, 25 Mar 2011 17:23:11 +0100 (CET) Received: from erinome (g2.matrix-vision.com [80.152.136.245]) by mail1.matrix-vision.com (Postfix) with ESMTPA id 851047213E for ; Fri, 25 Mar 2011 17:23:11 +0100 (CET) Received: from erinome (localhost [127.0.0.1]) by erinome (Postfix) with ESMTP id DA12D6F8A for ; Fri, 25 Mar 2011 17:23:10 +0100 (CET) Received: by erinome (Postfix, from userid 108) id C96736F9C; Fri, 25 Mar 2011 17:23:10 +0100 (CET) Received: from ap437-joe.intern.matrix-vision.de (host65-46.intern.matrix-vision.de [192.168.65.46]) by erinome (Postfix) with ESMTPA id AD3C16F8A for ; Fri, 25 Mar 2011 17:23:10 +0100 (CET) From: Michael Jones To: linux-omap@vger.kernel.org Subject: [PATCH] omap: fix compiler warning Date: Fri, 25 Mar 2011 17:21:41 +0100 Message-Id: <1301070101-12631-1-git-send-email-michael.jones@matrix-vision.de> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-MV-Disclaimer: true (erinome) X-AV-Checked: ClamAV using ClamSMTP (erinome) X-AV-Checked: ClamAV using ClamSMTP (mail1) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 25 Mar 2011 16:23:14 +0000 (UTC) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 971d186..a1d4d1b 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -1672,7 +1672,9 @@ static void __init omap_gpio_chip_init(struct gpio_bank *bank) for (j = bank->virtual_irq_start; j < bank->virtual_irq_start + bank_width; j++) { +#ifdef CONFIG_LOCKDEP struct irq_desc *d = irq_to_desc(j); +#endif lockdep_set_class(&d->lock, &gpio_lock_class); set_irq_chip_data(j, bank);