]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Cleanup patch to sync with mainline kernel
authorTony Lindgren <tony@atomide.com>
Mon, 3 Apr 2006 15:19:20 +0000 (08:19 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 3 Apr 2006 15:19:20 +0000 (08:19 -0700)
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/fb.c
arch/arm/plat-omap/mcbsp.c
arch/arm/plat-omap/timer32k.c
include/asm-arm/arch-omap/mux.h
include/asm-arm/arch-omap/omap-alsa.h

index 51634ce12cb1326a2e015c1e8244e75810c2163c..7eded8e1b917759f06d48a997c021d651b69df14 100644 (file)
@@ -286,13 +286,13 @@ static struct platform_device h2_lcd_device = {
        .id             = -1,
 };
 
-static struct omap_mcbsp_reg_cfg mcbsp_regs = { 
+static struct omap_mcbsp_reg_cfg mcbsp_regs = {
        .spcr2 = FREE | FRST | GRST | XRST | XINTM(3),
        .spcr1 = RINTM(3) | RRST,
        .rcr2  = RPHASE | RFRLEN2(OMAP_MCBSP_WORD_8) |
                 RWDLEN2(OMAP_MCBSP_WORD_16) | RDATDLY(1),
        .rcr1  = RFRLEN1(OMAP_MCBSP_WORD_8) | RWDLEN1(OMAP_MCBSP_WORD_16),
-       .xcr2  = XPHASE | XFRLEN2(OMAP_MCBSP_WORD_8) | 
+       .xcr2  = XPHASE | XFRLEN2(OMAP_MCBSP_WORD_8) |
                 XWDLEN2(OMAP_MCBSP_WORD_16) | XDATDLY(1) | XFIG,
        .xcr1  = XFRLEN1(OMAP_MCBSP_WORD_8) | XWDLEN1(OMAP_MCBSP_WORD_16),
        .srgr1 = FWID(15),
@@ -301,7 +301,7 @@ static struct omap_mcbsp_reg_cfg mcbsp_regs = {
        .pcr0  = CLKXM | CLKRM | FSXP | FSRP | CLKXP | CLKRP,
        //.pcr0 = CLKXP | CLKRP,        /* mcbsp: slave */
 };
+
 static struct omap_alsa_codec_config alsa_config = {
        .name                   = "H2 TSC2101",
        .mcbsp_regs_alsa        = &mcbsp_regs,
@@ -311,15 +311,15 @@ static struct omap_alsa_codec_config alsa_config = {
        .codec_clock_on         = NULL, // tsc2101_clock_on,
        .codec_clock_off        = NULL, // tsc2101_clock_off,
        .get_default_samplerate = NULL, // tsc2101_get_default_samplerate,
-};    
+};
 
 static struct platform_device h2_mcbsp1_device = {
        .name   = "omap_alsa_mcbsp",
        .id     = 1,
        .dev = {
                .platform_data  = &alsa_config,
-       }, 
-};    
+       },
+};
 
 static struct platform_device *h2_devices[] __initdata = {
        &h2_nor_device,
index 24dd374224afaa8741c72d1d7c0dcf520a605fe6..0884bc7c23b7f31635266ff8a10c0c15cb701e61 100644 (file)
@@ -167,7 +167,7 @@ void __init omap_serial_init()
 
 static struct platform_device serial_device = {
        .name                   = "serial8250",
-       .id                     = 0,
+       .id                     = PLAT8250_DEV_PLATFORM,
        .dev                    = {
                .platform_data  = serial_platform_data,
        },
index 29071ad3421e56d482777aabdffe4081b72c0dc9..ca16552d2c1643b7164aed4708cfe58e5b6a2be1 100644 (file)
@@ -67,7 +67,7 @@ struct clk * clk_get(struct device *dev, const char *id)
                        clk = p;
                        break;
                }
-       }       
+       }
 
        mutex_unlock(&clocks_mutex);
 
index 6dd5292df07d2ee5528812efdcb83a79eab8e4c1..305e9b990b7106666956f82be945a71bf97bb93d 100644 (file)
@@ -20,14 +20,10 @@ static struct omapfb_platform_data omapfb_config;
 
 static u64 omap_fb_dma_mask = ~(u32)0;
 
-/* in devices.c */
-extern void omap_nop_release(struct device *dev);
-
 static struct platform_device omap_fb_device = {
        .name           = "omapfb",
        .id             = -1,
        .dev = {
-               .release                = omap_nop_release,
                .dma_mask               = &omap_fb_dma_mask,
                .coherent_dma_mask      = ~(u32)0,
                .platform_data          = &omapfb_config,
index d87f21cc3c032bea0009b0ec042810f504db8860..053178dfc440176ee6aeaf528800caddccc8f887 100644 (file)
@@ -310,10 +310,10 @@ int omap_mcbsp_request(unsigned int id)
                               mcbsp[id].tx_irq, mcbsp[id].id);
                        return err;
                }
-               
+
                init_completion(&(mcbsp[id].tx_irq_completion));
-               
-               
+
+
                err = request_irq(mcbsp[id].rx_irq, omap_mcbsp_rx_irq_handler, 0,
                                  "McBSP",
                                  (void *) (&mcbsp[id]));
@@ -323,10 +323,10 @@ int omap_mcbsp_request(unsigned int id)
                        free_irq(mcbsp[id].tx_irq, (void *) (&mcbsp[id]));
                        return err;
                }
-               
+
                init_completion(&(mcbsp[id].rx_irq_completion));
        }
-       
+
        return 0;
 
 }
@@ -364,7 +364,7 @@ void omap_mcbsp_free(unsigned int id)
 
        mcbsp[id].free = 1;
        spin_unlock(&mcbsp[id].lock);
-       
+
        if (mcbsp[id].io_type == OMAP_MCBSP_IRQ_IO) {
                /* Free IRQs */
                free_irq(mcbsp[id].rx_irq, (void *) (&mcbsp[id]));
index 6ef5468c31bdcc07f854d778c1fcfd9f6c682076..b2a943bf11ef98f4a8eb5789102a9f968244de90 100644 (file)
@@ -272,7 +272,7 @@ static struct clk * gpt1_ick;
 static struct clk * gpt1_fck;
 
 static __init void omap_init_32k_timer(void)
-{      
+{
 #ifdef CONFIG_NO_IDLE_HZ
        omap_timer.dyn_tick = &omap_dyn_tick_timer;
 #endif
index 28fd67542dd89c22592a45e6c572c1ea068a1851..0dc24d4ba59c7f7d291216299dae512c5dfd446d 100644 (file)
@@ -171,7 +171,7 @@ enum omap730_index {
        E4_730_KBC2,
        F4_730_KBC3,
        E3_730_KBC4,
-    
+
        /* USB */
        AA17_730_USB_DM,
        W16_730_USB_PU_EN,
index b4ec45a84e635c18b12b1e903570c5de2277fcfd..7841ddc5e86542e78aa199640633ef0955433286 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * linux/include/asm-arm/arch-omap/omap-alsa.h
- * 
+ *
  * Alsa Driver for AIC23 and TSC2101 codecs on OMAP platform boards.
  *
  * Copyright (C) 2006 Mika Laitio <lamikr@cc.jyu.fi>