staging: fbtft: replace master->setup() with spi_setup()
commitdd3afa57c515801f37071734f56be9035fdeaa8c
authorStefan Wahren <stefan.wahren@i2se.com>
Tue, 25 Aug 2015 21:04:12 +0000 (25 21:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:33:58 +0000 (13 09:33 -0700)
treee7a9b597eea0c704f97ff57753f547c1dc73dcd2
parentcabb5b2a2866829177df2f1cee70f0dd42ee6ae0
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