aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-palmtt.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@bitmer.com>2013-06-15 04:31:08 -0400
committerTony Lindgren <tony@atomide.com>2013-06-18 03:12:34 -0400
commitb6a85477d7abf6bdb299860a066b6c66a5c6a7dd (patch)
treeae465b452a472c3fe6b450c328bdd8f8c8c9ca5d /arch/arm/mach-omap1/board-palmtt.c
parentbf2920aa57f339b3901172ca35fbbf303acf8e16 (diff)
ARM: OMAP1: Remove legacy irda.h and irda setup from board files
omap-ir.c driver has never been upstream and was also removed from linux-omap.git four years ago (See linux-omap.git commit efd1e3f ("REMOVE OMAP LEGACY CODE: Reset drivers/net/irda to mainline")). Therefore remove needless device registration from a few board files and delete thus to be unused arch/arm/mach-omap1/include/mach/irda.h and unused OMAP_DMA_UART3_* definitions from dma.h. Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-palmtt.c')
-rw-r--r--arch/arm/mach-omap1/board-palmtt.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c
index 65a4a3e357f2..ca501208825f 100644
--- a/arch/arm/mach-omap1/board-palmtt.c
+++ b/arch/arm/mach-omap1/board-palmtt.c
@@ -38,14 +38,12 @@
38#include <mach/mux.h> 38#include <mach/mux.h>
39#include <linux/omap-dma.h> 39#include <linux/omap-dma.h>
40#include <mach/tc.h> 40#include <mach/tc.h>
41#include <mach/irda.h>
42#include <linux/platform_data/keypad-omap.h> 41#include <linux/platform_data/keypad-omap.h>
43 42
44#include <mach/hardware.h> 43#include <mach/hardware.h>
45#include <mach/usb.h> 44#include <mach/usb.h>
46 45
47#include "common.h" 46#include "common.h"
48#include "dma.h"
49 47
50#define PALMTT_USBDETECT_GPIO 0 48#define PALMTT_USBDETECT_GPIO 0
51#define PALMTT_CABLE_GPIO 1 49#define PALMTT_CABLE_GPIO 1
@@ -163,33 +161,6 @@ static struct platform_device palmtt_lcd_device = {
163 .name = "lcd_palmtt", 161 .name = "lcd_palmtt",
164 .id = -1, 162 .id = -1,
165}; 163};
166static struct omap_irda_config palmtt_irda_config = {
167 .transceiver_cap = IR_SIRMODE,
168 .rx_channel = OMAP_DMA_UART3_RX,
169 .tx_channel = OMAP_DMA_UART3_TX,
170 .dest_start = UART3_THR,
171 .src_start = UART3_RHR,
172 .tx_trigger = 0,
173 .rx_trigger = 0,
174};
175
176static struct resource palmtt_irda_resources[] = {
177 [0] = {
178 .start = INT_UART3,
179 .end = INT_UART3,
180 .flags = IORESOURCE_IRQ,
181 },
182};
183
184static struct platform_device palmtt_irda_device = {
185 .name = "omapirda",
186 .id = -1,
187 .dev = {
188 .platform_data = &palmtt_irda_config,
189 },
190 .num_resources = ARRAY_SIZE(palmtt_irda_resources),
191 .resource = palmtt_irda_resources,
192};
193 164
194static struct platform_device palmtt_spi_device = { 165static struct platform_device palmtt_spi_device = {
195 .name = "spi_palmtt", 166 .name = "spi_palmtt",
@@ -234,7 +205,6 @@ static struct platform_device *palmtt_devices[] __initdata = {
234 &palmtt_flash_device, 205 &palmtt_flash_device,
235 &palmtt_kp_device, 206 &palmtt_kp_device,
236 &palmtt_lcd_device, 207 &palmtt_lcd_device,
237 &palmtt_irda_device,
238 &palmtt_spi_device, 208 &palmtt_spi_device,
239 &palmtt_backlight_device, 209 &palmtt_backlight_device,
240 &palmtt_led_device, 210 &palmtt_led_device,