]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fbtft: replace master->setup() with spi_setup()
authorStefan Wahren <stefan.wahren@i2se.com>
Tue, 25 Aug 2015 21:04:12 +0000 (21:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:33:58 +0000 (09:33 -0700)
commit067586524dabf6b4a883ad891f9fee4bc8a7f8a4
treee7a9b597eea0c704f97ff57753f547c1dc73dcd2
parent30c81fb2fb38b25acab76da344b947a6f46d9f09
staging: fbtft: replace master->setup() with spi_setup()

Calling the setup of the SPI master directly causes a NULL pointer
dereference with master drivers without a separate setup function.
This problem is reproduceable on ARM MXS platform.

So fix this issue by using spi_setup() instead.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_uc1611.c
drivers/staging/fbtft/fb_watterott.c