greybus: loopback: 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>
This commit is contained in:
parent
d8886f4a06
commit
47d3cfbbad
@ -31,8 +31,6 @@ struct gb_loopback_stats {
|
||||
|
||||
struct gb_loopback {
|
||||
struct gb_connection *connection;
|
||||
u8 version_major;
|
||||
u8 version_minor;
|
||||
|
||||
struct kfifo kfifo;
|
||||
struct mutex mutex;
|
||||
@ -73,9 +71,6 @@ module_param(kfifo_depth, uint, 0444);
|
||||
|
||||
#define GB_LOOPBACK_MS_WAIT_MAX 1000
|
||||
|
||||
/* Define get_version() routine */
|
||||
define_get_version(gb_loopback, LOOPBACK);
|
||||
|
||||
/* interface sysfs attributes */
|
||||
#define gb_loopback_ro_attr(field) \
|
||||
static ssize_t field##_show(struct device *dev, \
|
||||
@ -493,11 +488,6 @@ static int gb_loopback_connection_init(struct gb_connection *connection)
|
||||
goto out_sysfs;
|
||||
}
|
||||
|
||||
/* Check the version */
|
||||
retval = get_version(gb);
|
||||
if (retval)
|
||||
goto out_minor;
|
||||
|
||||
/* Calculate maximum payload */
|
||||
gb->size_max = gb_operation_get_payload_size_max(connection);
|
||||
if (gb->size_max <= sizeof(struct gb_loopback_transfer_request)) {
|
||||
|
Loading…
Reference in New Issue
Block a user