serial: omap: Initialize platform_data
authorVikram Pandita <vikram.pandita@ti.com>
Mon, 8 Jul 2013 07:25:43 +0000 (10:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 22:55:44 +0000 (15:55 -0700)
commita0a490f9df2bf7e077054c78221c6b5301681de6
treedb4b94d731f785ae296312a3707cd81ab1954f9d
parent76bac1987ca181d54f8c9456d20997cb1020af2d
serial: omap: Initialize platform_data

Otherwise serial driver would crash accessing platform_data that was
not initialized in functions like:

        serial_omap_pm(...)
        ...
        if (!state && pdata->enable_wakeup)
                   ^^^^^^^
        ...

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c