OMAP1: IrDA cleanup
Subsystems (3)
PATCH 1/1 OMAP1: IrDA cleanup
---Komal Shah
http://komalshah.blogspot.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 1 line
From nobody Mon Sep 17 00:00:00 2001
From: Komal Shah <[email protected]>
Date: Thu Apr 13 18:06:46 2006 +0300
Subject: [PATCH] Remove the last references to omap1610 IrDA code.
Signed-off-by Komal Shah <[email protected]>
---
arch/arm/mach-omap1/board-h2.c | 4 ++++ arch/arm/mach-omap1/board-h3.c | 3 +++ arch/arm/mach-omap1/devices.c | 30 ------------------------------ 3 files changed, 7 insertions(+), 30 deletions(-)
c6009e49e49089e75a22fdfd67c87233cf7201f2
arch/arm/mach-omap1/board-h2.c +4 -0
@@ -271,11 +271,15 @@ .flags = IORESOURCE_IRQ, }, }; + +static u64 irda_dmamask =0xffffffff ; +static struct platform_device h2_irda_device = { .name ="omapirda" , .id =0 , .dev = { .platform_data = &h2_irda_data, + .dma_mask = &irda_dmamask, }, .num_resources =ARRAY_SIZE (h2_irda_resources), .resource = h2_irda_resources,
arch/arm/mach-omap1/board-h3.c +3 -0
@@ -346,11 +346,14 @@ }, }; +static u64 irda_dmamask =0xffffffff ; +static struct platform_device h3_irda_device = { .name ="omapirda" , .id =0 , .dev = { .platform_data = &h3_irda_data, + .dma_mask = &irda_dmamask, }, .num_resources =ARRAY_SIZE (h3_irda_resources), .resource = h3_irda_resources,
arch/arm/mach-omap1/devices.c +0 -30
@@ -25,35 +25,6 @@#include <asm/arch/mux.h> #include <asm/arch/gpio.h> -#if defined(CONFIG_OMAP1610_IR ) || defined(CONFIG_OMAP161O_IR_MODULE ) - -static u64 irda_dmamask =0xffffffff ; - -static struct platform_device omap1610ir_device = { - .name ="omap1610-ir" , - .id =-1 , - .dev = { - .dma_mask = &irda_dmamask, - }, -}; - -static void omap_init_irda (void ) -{ -/* FIXME define and use a boot tag, members something like: -* u8 uart; // uart1, or uart3 -* ... but driver only handles uart3 for now -* s16 fir_sel; // gpio for SIR vs FIR -* ... may prefer a callback for SIR/MIR/FIR mode select; -* while h2 uses a GPIO, H3 uses a gpio expander -*/ -if (machine_is_omap_h2 () - ||machine_is_omap_h3 ()) - (void )platform_device_register (&omap1610ir_device); -} -#else -static inline void omap_init_irda (void ) {} -#endif -/*-------------------------------------------------------------------------*/ #if defined(CONFIG_OMAP_RTC ) || defined(CONFIG_OMAP_RTC )
@@ -155,7 +126,6 @@/* please keep these calls, and their implementations above, * in alphabetical order so they're easier to sort through. */ -omap_init_irda ();omap_init_rtc ();omap_init_sti ();
Signature · 1 line
1.3-rc1.GIT
Tony Lindgren
reviewerQuoted 2 lines · Komal Shah
Subject: [PATCH] Remove the last references to omap1610 IrDA code.
Pushing today.
Tony