serial: ifx6x60: fix paging fault on spi_register_driver
authorFengguang Wu <fengguang.wu@intel.com>
Tue, 7 Aug 2012 05:12:47 +0000 (13:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 20:19:31 +0000 (13:19 -0700)
commit7d9739cd6b03575bc88c6ce3c60853dbc50a6ae2
tree28ed66014c74a445f566ab7e75b02f58b98699d8
parentb53cc0fadef59583a9056c973e639852bed47e73
serial: ifx6x60: fix paging fault on spi_register_driver

[  117.240866] BUG: unable to handle kernel paging request at 815b627c
[  117.240866] IP: [<813fe94b>] spi_register_driver+0xb/0x50
...
[  117.240866] Call Trace:
[  117.240866]  [<817de977>] ifx_spi_init+0xbe/0xf0

The root cause is, spi_register_driver() is trying to write into the
passed *const* struct spi_driver.

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ifx6x60.c