]> Pileus Git - ~andy/linux/commit
serial: omap: fix DeviceTree boot
authorFelipe Balbi <balbi@ti.com>
Fri, 7 Sep 2012 18:10:33 +0000 (21:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 23:31:09 +0000 (16:31 -0700)
commitce2f08ded291188b684e3d2e9940132514ada0a9
tree80608ab21d2c790cddc8491821d142bd50809b56
parente36851d0fa94b0f7802b3cc80406dbd3ef4f2f16
serial: omap: fix DeviceTree boot

OMAP Architecture code, passes a few function
pointers for UART driver to use in order to
properly implement Power Management and Wakeup
capabilities.

The problem is that those function pointers,
which are passed (ab)using platform_data on
non-DT kernels, can't be passed down to drivers
through DT.

commit e5b57c0 (serial: omap: define helpers
for pdata function pointers) failed to take DT
kernels into consideration and caused a regression
to DT kernel boot.

Fix that by (re-)adding a check for valid pdata
pointer together with valid pdata->$FUNCTION
pointer.

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c