greybus: spi: fix and cleanup spi devices handling
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 15 Dec 2015 19:09:57 +0000 (19:09 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Dec 2015 22:32:12 +0000 (14:32 -0800)
commit65fabd1848f2ddd00a1af5a1eaeb4f95dcb25b77
tree259b40685a80c530dcd85b09aab0c4c5816df6b2
parent4a0c4453e3f99335db3e7786b1a66e3b6cfa0653
greybus: spi: fix and cleanup spi devices handling

Cleanup and remove the spi_devices from the greybus spi handling as they
are not needed and they were completely misused.

With this the gb_spi_init does not make sense to exist anymore, so just
remove it and handle the master config directly from connection init.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Reported-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/spi.c