Commit f06eda1b authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: raw: Drop get_version support

This is done from a common place now, no need to replicate it.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2e93d02c
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
struct gb_raw { struct gb_raw {
struct gb_connection *connection; struct gb_connection *connection;
u8 version_major;
u8 version_minor;
struct list_head list; struct list_head list;
int list_data; int list_data;
...@@ -35,13 +33,8 @@ struct gb_raw { ...@@ -35,13 +33,8 @@ struct gb_raw {
#define GB_RAW_VERSION_MINOR 0x01 #define GB_RAW_VERSION_MINOR 0x01
/* Greybus raw request types */ /* Greybus raw request types */
#define GB_RAW_TYPE_INVALID 0x00
#define GB_RAW_TYPE_PROTOCOL_VERSION 0x01
#define GB_RAW_TYPE_SEND 0x02 #define GB_RAW_TYPE_SEND 0x02
/* Define get_version() routine */
define_get_version(gb_raw, RAW);
struct gb_raw_send_request { struct gb_raw_send_request {
__le32 len; __le32 len;
__u8 data[0]; __u8 data[0];
...@@ -180,11 +173,6 @@ static int gb_raw_connection_init(struct gb_connection *connection) ...@@ -180,11 +173,6 @@ static int gb_raw_connection_init(struct gb_connection *connection)
raw->connection = connection; raw->connection = connection;
connection->private = raw; connection->private = raw;
/* Check the protocol version */
retval = get_version(raw);
if (retval)
goto error_free;
INIT_LIST_HEAD(&raw->list); INIT_LIST_HEAD(&raw->list);
mutex_init(&raw->list_lock); mutex_init(&raw->list_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment