public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP2 H4: fix build by removing IRDA support
@ 2009-04-25 21:52 Paul Walmsley
  2009-04-28  1:23 ` [APPLIED] " Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Walmsley @ 2009-04-25 21:52 UTC (permalink / raw)
  To: linux-omap; +Cc: Tony Lindgren


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 <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
---
 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,
-- 
1.6.3.rc1.51.gea0b7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [APPLIED] [PATCH] OMAP2 H4: fix build by removing IRDA support
  2009-04-25 21:52 [PATCH] OMAP2 H4: fix build by removing IRDA support Paul Walmsley
@ 2009-04-28  1:23 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2009-04-28  1:23 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Initial commit ID (Likely to change): 5905102dbeebe4d733b646caad5eced616b9d65a

PatchWorks
http://patchwork.kernel.org/patch/19961/

Git
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=5905102dbeebe4d733b646caad5eced616b9d65a



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-28  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-25 21:52 [PATCH] OMAP2 H4: fix build by removing IRDA support Paul Walmsley
2009-04-28  1:23 ` [APPLIED] " Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox