From patchwork Sat Apr 25 21:52:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 19961 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3PLquvg032547 for ; Sat, 25 Apr 2009 21:52:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbZDYVwq (ORCPT ); Sat, 25 Apr 2009 17:52:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752027AbZDYVwq (ORCPT ); Sat, 25 Apr 2009 17:52:46 -0400 Received: from utopia.booyaka.com ([72.9.107.138]:35214 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751638AbZDYVwp (ORCPT ); Sat, 25 Apr 2009 17:52:45 -0400 Received: (qmail 30265 invoked by uid 526); 25 Apr 2009 21:52:44 -0000 Date: Sat, 25 Apr 2009 15:52:43 -0600 (MDT) From: Paul Walmsley To: linux-omap@vger.kernel.org cc: Tony Lindgren Subject: [PATCH] OMAP2 H4: fix build by removing IRDA support Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Commit 5c2c33ae65b949b8c901754090eb95d7b77dc5e4 breaks H4 builds, so remove the gpio_expa IRDA support in the same manner as that commit did for H3. Signed-off-by: Paul Walmsley Cc: Tony Lindgren --- arch/arm/mach-omap2/board-h4.c | 39 ++++----------------------------------- 1 files changed, 4 insertions(+), 35 deletions(-) diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index cbca22a..6145139 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c @@ -186,43 +186,12 @@ static struct platform_device h4_flash_device = { .resource = &h4_flash_resource, }; -#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE) - -/* Select between the IrDA and aGPS module */ -static int h4_select_irda(struct device *dev, int state) -{ - /* U192.P0 = high for IRDA; else AGPS */ - gpio_set_value_cansleep(H4_GPIO_IRDA_AGPSn, state & IR_SEL); - - /* NOTE: UART3 can also hook up to a DB9 or to GSM ... */ - return 0; -} - -static void set_trans_mode(struct work_struct *work) -{ - struct omap_irda_config *irda_config = - container_of(work, struct omap_irda_config, gpio_expa.work); - int mode = irda_config->mode; - - /* U191.P0 = low for SIR; else MIR/FIR */ - gpio_set_value_cansleep(H4_GPIO_IRDA_FIRSEL, !(mode & IR_SIRMODE)); -} - -static int h4_transceiver_mode(struct device *dev, int mode) -{ - struct omap_irda_config *irda_config = dev->platform_data; - - irda_config->mode = mode; - cancel_delayed_work(&irda_config->gpio_expa); - PREPARE_DELAYED_WORK(&irda_config->gpio_expa, set_trans_mode); - schedule_delayed_work(&irda_config->gpio_expa, 0); - - return 0; -} -#else +/* + * IRDA code removed due to dependency on dead gpio_expa code - + * feel free to fix and add back in if you are a user + */ static int h4_select_irda(struct device *dev, int state) { return 0; } static int h4_transceiver_mode(struct device *dev, int mode) { return 0; } -#endif static struct omap_irda_config h4_irda_data = { .transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,