int                     x_char; /* xon/xoff character */
 };
 
-#define custom amiga_custom
-
 static struct tty_driver *serial_driver;
 
 /* number of characters left in xmit buffer before we ask for more */
        if (info->IER & UART_IER_THRI) {
                info->IER &= ~UART_IER_THRI;
                /* disable Tx interrupt and remove any pending interrupts */
-               custom.intena = IF_TBE;
+               amiga_custom.intena = IF_TBE;
                mb();
-               custom.intreq = IF_TBE;
+               amiga_custom.intreq = IF_TBE;
                mb();
        }
        local_irq_restore(flags);
            && info->xmit.buf
            && !(info->IER & UART_IER_THRI)) {
                info->IER |= UART_IER_THRI;
-               custom.intena = IF_SETCLR | IF_TBE;
+               amiga_custom.intena = IF_SETCLR | IF_TBE;
                mb();
                /* set a pending Tx Interrupt, transmitter should restart now */
-               custom.intreq = IF_SETCLR | IF_TBE;
+               amiga_custom.intreq = IF_SETCLR | IF_TBE;
                mb();
        }
        local_irq_restore(flags);
        icount = &info->icount;
 
        status = UART_LSR_DR; /* We obviously have a character! */
-       serdatr = custom.serdatr;
+       serdatr = amiga_custom.serdatr;
        mb();
-       custom.intreq = IF_RBF;
+       amiga_custom.intreq = IF_RBF;
        mb();
 
        if((serdatr & 0x1ff) == 0)
 
 static void transmit_chars(struct serial_state *info)
 {
-       custom.intreq = IF_TBE;
+       amiga_custom.intreq = IF_TBE;
        mb();
        if (info->x_char) {
-               custom.serdat = info->x_char | 0x100;
+               amiga_custom.serdat = info->x_char | 0x100;
                mb();
                info->icount.tx++;
                info->x_char = 0;
            || info->tport.tty->flow.stopped
            || info->tport.tty->hw_stopped) {
                info->IER &= ~UART_IER_THRI;
-               custom.intena = IF_TBE;
+               amiga_custom.intena = IF_TBE;
                mb();
                return;
        }
 
-       custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100;
+       amiga_custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100;
        mb();
        info->xmit.tail = info->xmit.tail & (SERIAL_XMIT_SIZE-1);
        info->icount.tx++;
        printk("THRE...");
 #endif
        if (info->xmit.head == info->xmit.tail) {
-               custom.intena = IF_TBE;
+               amiga_custom.intena = IF_TBE;
                mb();
                info->IER &= ~UART_IER_THRI;
        }
 #endif
                                port->tty->hw_stopped = 0;
                                info->IER |= UART_IER_THRI;
-                               custom.intena = IF_SETCLR | IF_TBE;
+                               amiga_custom.intena = IF_SETCLR | IF_TBE;
                                mb();
                                /* set a pending Tx Interrupt, transmitter should restart now */
-                               custom.intreq = IF_SETCLR | IF_TBE;
+                               amiga_custom.intreq = IF_SETCLR | IF_TBE;
                                mb();
                                tty_wakeup(port->tty);
                                return;
                                port->tty->hw_stopped = 1;
                                info->IER &= ~UART_IER_THRI;
                                /* disable Tx interrupt and remove any pending interrupts */
-                               custom.intena = IF_TBE;
+                               amiga_custom.intena = IF_TBE;
                                mb();
-                               custom.intreq = IF_TBE;
+                               amiga_custom.intreq = IF_TBE;
                                mb();
                        }
                }
 {
        struct serial_state *info = dev_id;
 
-       if (custom.serdatr & SDR_TBE) {
+       if (amiga_custom.serdatr & SDR_TBE) {
 #ifdef SERIAL_DEBUG_INTR
          printk("ser_tx_int...");
 #endif
 
        /* Clear anything in the input buffer */
 
-       custom.intreq = IF_RBF;
+       amiga_custom.intreq = IF_RBF;
        mb();
 
        retval = request_irq(IRQ_AMIGA_VERTB, ser_vbl_int, 0, "serial status", info);
        }
 
        /* enable both Rx and Tx interrupts */
-       custom.intena = IF_SETCLR | IF_RBF | IF_TBE;
+       amiga_custom.intena = IF_SETCLR | IF_RBF | IF_TBE;
        mb();
        info->IER = UART_IER_MSI;
 
        }
 
        info->IER = 0;
-       custom.intena = IF_RBF | IF_TBE;
+       amiga_custom.intena = IF_RBF | IF_TBE;
        mb();
 
        /* disable break condition */
-       custom.adkcon = AC_UARTBRK;
+       amiga_custom.adkcon = AC_UARTBRK;
        mb();
 
        if (C_HUPCL(tty))
        if(cval & UART_LCR_PARITY)
          serper |= (SERPER_PARENB);
 
-       custom.serper = serper;
+       amiga_custom.serper = serper;
        mb();
        }
 
 
        local_irq_save(flags);
        info->IER |= UART_IER_THRI;
-       custom.intena = IF_SETCLR | IF_TBE;
+       amiga_custom.intena = IF_SETCLR | IF_TBE;
        mb();
        /* set a pending Tx Interrupt, transmitter should restart now */
-       custom.intreq = IF_SETCLR | IF_TBE;
+       amiga_custom.intreq = IF_SETCLR | IF_TBE;
        mb();
        local_irq_restore(flags);
 }
            && !(info->IER & UART_IER_THRI)) {
                info->IER |= UART_IER_THRI;
                local_irq_disable();
-               custom.intena = IF_SETCLR | IF_TBE;
+               amiga_custom.intena = IF_SETCLR | IF_TBE;
                mb();
                /* set a pending Tx Interrupt, transmitter should restart now */
-               custom.intreq = IF_SETCLR | IF_TBE;
+               amiga_custom.intreq = IF_SETCLR | IF_TBE;
                mb();
                local_irq_restore(flags);
        }
 
                /* Check this ! */
                local_irq_save(flags);
-               if(!(custom.intenar & IF_TBE)) {
-                   custom.intena = IF_SETCLR | IF_TBE;
+               if(!(amiga_custom.intenar & IF_TBE)) {
+                   amiga_custom.intena = IF_SETCLR | IF_TBE;
                    mb();
                    /* set a pending Tx Interrupt, transmitter should restart now */
-                   custom.intreq = IF_SETCLR | IF_TBE;
+                   amiga_custom.intreq = IF_SETCLR | IF_TBE;
                    mb();
                }
                local_irq_restore(flags);
        unsigned long flags;
 
        local_irq_save(flags);
-       status = custom.serdatr;
+       status = amiga_custom.serdatr;
        mb();
        local_irq_restore(flags);
        result = ((status & SDR_TSRE) ? TIOCSER_TEMT : 0);
 
        local_irq_save(flags);
        if (break_state == -1)
-         custom.adkcon = AC_SETCLR | AC_UARTBRK;
+         amiga_custom.adkcon = AC_SETCLR | AC_UARTBRK;
        else
-         custom.adkcon = AC_UARTBRK;
+         amiga_custom.adkcon = AC_UARTBRK;
        mb();
        local_irq_restore(flags);
        return 0;
        state->read_status_mask &= ~UART_LSR_DR;
        if (tty_port_initialized(port)) {
                /* disable receive interrupts */
-               custom.intena = IF_RBF;
+               amiga_custom.intena = IF_RBF;
                mb();
                /* clear any pending receive interrupt */
-               custom.intreq = IF_RBF;
+               amiga_custom.intreq = IF_RBF;
                mb();
 
                /*
        printk("In rs_wait_until_sent(%d) check=%lu...", timeout, char_time);
        printk("jiff=%lu...", jiffies);
 #endif
-       while(!((lsr = custom.serdatr) & SDR_TSRE)) {
+       while(!((lsr = amiga_custom.serdatr) & SDR_TSRE)) {
 #ifdef SERIAL_DEBUG_RS_WAIT_UNTIL_SENT
                printk("serdatr = %d (jiff=%lu)...", lsr, jiffies);
 #endif
 
        state = rs_table;
        memset(state, 0, sizeof(*state));
-       state->port = (int)&custom.serdatr; /* Just to give it a value */
+       state->port = (int)&amiga_custom.serdatr; /* Just to give it a value */
        tty_port_init(&state->tport);
        state->tport.ops = &amiga_port_ops;
        tty_port_link_device(&state->tport, serial_driver, 0);
        local_irq_save(flags);
 
        /* turn off Rx and Tx interrupts */
-       custom.intena = IF_RBF | IF_TBE;
+       amiga_custom.intena = IF_RBF | IF_TBE;
        mb();
 
        /* clear any pending interrupt */
-       custom.intreq = IF_RBF | IF_TBE;
+       amiga_custom.intreq = IF_RBF | IF_TBE;
        mb();
 
        local_irq_restore(flags);
 
 static void amiga_serial_putc(char c)
 {
-       custom.serdat = (unsigned char)c | 0x100;
-       while (!(custom.serdatr & 0x2000))
+       amiga_custom.serdat = (unsigned char)c | 0x100;
+       while (!(amiga_custom.serdatr & 0x2000))
                barrier();
 }
 
 static void serial_console_write(struct console *co, const char *s,
                                unsigned count)
 {
-       unsigned short intena = custom.intenar;
+       unsigned short intena = amiga_custom.intenar;
 
-       custom.intena = IF_TBE;
+       amiga_custom.intena = IF_TBE;
 
        while (count--) {
                if (*s == '\n')
                amiga_serial_putc(*s++);
        }
 
-       custom.intena = IF_SETCLR | (intena & IF_TBE);
+       amiga_custom.intena = IF_SETCLR | (intena & IF_TBE);
 }
 
 static struct tty_driver *serial_console_device(struct console *c, int *index)