omap: mcbsp: Remove rx_/tx_word_length variables
authorJarkko Nikula <jhnikula@gmail.com>
Fri, 1 Jul 2011 08:52:26 +0000 (08:52 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 7 Jul 2011 19:06:16 +0000 (12:06 -0700)
These variables got unused after ("omap: mcbsp: Drop in-driver transfer
support") but was noticed only afterwards.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/include/plat/mcbsp.h
arch/arm/plat-omap/mcbsp.c

index 6c535083240758b154c8f343d5f00e61b0728db3..63464ad9c67ab361c9365200c9f4e9564e53b403 100644 (file)
@@ -385,8 +385,6 @@ struct omap_mcbsp {
        void __iomem *io_base;
        u8 id;
        u8 free;
-       omap_mcbsp_word_length rx_word_length;
-       omap_mcbsp_word_length tx_word_length;
 
        int rx_irq;
        int tx_irq;
index 455eadcd820ce582250ef9e8b668296f8d72bab6..3c1fbdc92468480a3781e65095e35cbe12154b67 100644 (file)
@@ -869,9 +869,6 @@ void omap_mcbsp_start(unsigned int id, int tx, int rx)
        if (cpu_is_omap34xx())
                omap_st_start(mcbsp);
 
-       mcbsp->rx_word_length = (MCBSP_READ_CACHE(mcbsp, RCR1) >> 5) & 0x7;
-       mcbsp->tx_word_length = (MCBSP_READ_CACHE(mcbsp, XCR1) >> 5) & 0x7;
-
        /* Only enable SRG, if McBSP is master */
        w = MCBSP_READ_CACHE(mcbsp, PCR0);
        if (w & (FSXM | FSRM | CLKXM | CLKRM))