From: Viresh Kumar Date: Tue, 11 Aug 2015 02:06:10 +0000 (+0530) Subject: greybus: spi: Drop get_version support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3fb0c8f516e06cb3bc39610aeb1311b8376bdc61;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: spi: Drop get_version support This is done from a common place now, no need to replicate it. Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index 77d6bf0b7f13..ef3cc33772f8 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -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)