]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
8250.c: support specifying DW APB UARTs in device platform_data
authorWill Newton <will.newton@gmail.com>
Tue, 5 Feb 2008 06:27:50 +0000 (22:27 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:09 +0000 (09:44 -0800)
commit74a197417240120d638d67d74f48655fb7f46f16
tree903eea1331d4fbea110806f7ca4e4a96c128724a
parent02c9b5cf9acd8a85313b892dc5196ccf133d4884
8250.c: support specifying DW APB UARTs in device platform_data

Allow the private_data field to be specified in platform_data for the
standard 8250/16550 UART.  This field is used by DW APB type UARTs and
without this patch it's only possible to set this field when registering
the port by hand.  If private_data is not set then the driver will
potentially oops with a NULL pointer dereference.

Signed-off-by: Will Newton <will.newton@gmail.com>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/8250.c
include/linux/serial_8250.h