Re: [PATCH_V2 27/34] MIPS: jz4740: use jz47xx-uart & DT for UART output

From: Arnd Bergmann
Date: Wed Feb 04 2015 - 11:33:08 EST


On Wednesday 04 February 2015 15:21:56 Zubair Lutfullah Kakakhel wrote:
> +#ifndef __JZ4740_SERIAL_H__
> +#define __JZ4740_SERIAL_H__
> +
> +#define BASE_BAUD (12000000 / 16)
> +
> +#endif /* __JZ4740_SERIAL_H__ */
>

This looks wrong: You should not need to hardcode this number when
you can get it from DT.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/