[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080512105415.6a8fb88c@core>
Date: Mon, 12 May 2008 10:54:15 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Bryan Wu <cooloney@...nel.org>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
Javier Herrero <jherrero@...istemas.es>,
Bryan Wu <bryan.wu@...log.com>, Bryan Wu <cooloney@...nel.org>
Subject: Re: [PATCH 1/2] [8250 Serial Driver]: Added support for 8250-class
UARTs in HV Sistemas H8606 board
>
> +#ifdef SERIAL_EXTRA_IRQ_FLAGS
> + irq_flags |= SERIAL_EXTRA_IRQ_FLAGS;
> +#endif
> +
We try and keep ifdefs out of code. It is also not clear what you would
do if you had a box where the extra flags depended on the port.
So two suggestions
Either
Add just the line
+ irq_flags |= SERIAL_EXTRA_IRQ_FLAGS;
and at the end of 8250.h do
#ifndef SERIAL_EXTRA_IRQ_FLAGS
#define SERIAL_EXTRA_IRQ_FLAGS 0
#endif
or the same but with an argument (unused for now)
SERIAL_EXTRA_IRQ_FLAGS(up)
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists