uclinux-dev  

[uClinux-dev] [RFC] m68knommu: dont touch the irq controler in the mcfserial driver (v2)

Sebastian Siewior
Wed, 09 Apr 2008 07:17:02 -0700

The M523x initialized the irq controller properly, the driver must not do
it anymore.
Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]> 
---
Got lost in the ifdef mine field.

--- a/drivers/serial/mcfserial.c
+++ b/drivers/serial/mcfserial.c
@@ -1548,6 +1548,7 @@ static void mcfrs_irqinit(struct mcf_ser
 
        uartp = info->addr;
 
+#if !defined(CONFIG_M523x)
        icrp = (volatile unsigned char *) (MCF_MBAR + MCFICM_INTC0 +
                MCFINTC_ICR0 + MCFINT_UART0 + info->line);
        *icrp = 0x30 + info->line; /* level 6, line based priority */
@@ -1555,7 +1556,7 @@ static void mcfrs_irqinit(struct mcf_ser
        imrp = (volatile unsigned long *) (MCF_MBAR + MCFICM_INTC0 +
                MCFINTC_IMRL);
        *imrp &= ~((1 << (info->irq - MCFINT_VECBASE)) | 1);
-
+#endif
 #if defined(CONFIG_M523x)
        {
                volatile unsigned short *par_uartp;
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev