summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/raw.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-11 07:36:08 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-11 19:33:05 -0700
commitf06eda1b1744fcde6769eee22bceb7d9fee23bf5 (patch)
tree0c161bacf339724477efbbf45d544967fdb87206 /drivers/staging/greybus/raw.c
parent2e93d02c18ce39430a0cf0c591f067067bad2181 (diff)
downloadop-kernel-dev-f06eda1b1744fcde6769eee22bceb7d9fee23bf5.zip
op-kernel-dev-f06eda1b1744fcde6769eee22bceb7d9fee23bf5.tar.gz
greybus: raw: 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>
Diffstat (limited to 'drivers/staging/greybus/raw.c')
-rw-r--r--drivers/staging/greybus/raw.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c
index a17a986..215d421 100644
--- a/drivers/staging/greybus/raw.c
+++ b/drivers/staging/greybus/raw.c
@@ -19,8 +19,6 @@
struct gb_raw {
struct gb_connection *connection;
- u8 version_major;
- u8 version_minor;
struct list_head list;
int list_data;
@@ -35,13 +33,8 @@ struct gb_raw {
#define GB_RAW_VERSION_MINOR 0x01
/* Greybus raw request types */
-#define GB_RAW_TYPE_INVALID 0x00
-#define GB_RAW_TYPE_PROTOCOL_VERSION 0x01
#define GB_RAW_TYPE_SEND 0x02
-/* Define get_version() routine */
-define_get_version(gb_raw, RAW);
-
struct gb_raw_send_request {
__le32 len;
__u8 data[0];
@@ -180,11 +173,6 @@ static int gb_raw_connection_init(struct gb_connection *connection)
raw->connection = connection;
connection->private = raw;
- /* Check the protocol version */
- retval = get_version(raw);
- if (retval)
- goto error_free;
-
INIT_LIST_HEAD(&raw->list);
mutex_init(&raw->list_lock);
OpenPOWER on IntegriCloud