1
0
Fork 0

greybus: spi: Drop get_version support

This is done from a common place now, no need to replicate it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Viresh Kumar 2015-08-11 07:36:10 +05:30 committed by Greg Kroah-Hartman
parent 7071ca1df5
commit 3fb0c8f516
1 changed files with 0 additions and 10 deletions

View File

@ -17,8 +17,6 @@
struct gb_spi {
struct gb_connection *connection;
u8 version_major;
u8 version_minor;
/* Modes supported by spi controller */
u16 mode;
@ -181,9 +179,6 @@ static void gb_spi_cleanup(struct spi_device *spi)
/* Routines to get controller infomation */
/* Define get_version() routine */
define_get_version(gb_spi, SPI);
/*
* Map Greybus spi mode bits/flags/bpw into Linux ones.
* All bits are same for now and so these macro's return same values.
@ -264,11 +259,6 @@ static int gb_spi_init(struct gb_spi *spi)
{
int ret;
/* First thing we need to do is check the version */
ret = get_version(spi);
if (ret)
return ret;
/* mode never changes, just get it once */
ret = gb_spi_mode_operation(spi);
if (ret)