greybus: control: 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
f8cbc30de0
commit
507d75c4f4
|
@ -12,9 +12,6 @@
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include "greybus.h"
|
#include "greybus.h"
|
||||||
|
|
||||||
/* Define get_version() routine */
|
|
||||||
define_get_version(gb_control, CONTROL);
|
|
||||||
|
|
||||||
/* Get Manifest's size from the interface */
|
/* Get Manifest's size from the interface */
|
||||||
int gb_control_get_manifest_size_operation(struct gb_interface *intf)
|
int gb_control_get_manifest_size_operation(struct gb_interface *intf)
|
||||||
{
|
{
|
||||||
|
@ -100,7 +97,6 @@ static int gb_control_request_recv(u8 type, struct gb_operation *op)
|
||||||
static int gb_control_connection_init(struct gb_connection *connection)
|
static int gb_control_connection_init(struct gb_connection *connection)
|
||||||
{
|
{
|
||||||
struct gb_control *control;
|
struct gb_control *control;
|
||||||
int ret;
|
|
||||||
|
|
||||||
control = kzalloc(sizeof(*control), GFP_KERNEL);
|
control = kzalloc(sizeof(*control), GFP_KERNEL);
|
||||||
if (!control)
|
if (!control)
|
||||||
|
@ -109,14 +105,10 @@ static int gb_control_connection_init(struct gb_connection *connection)
|
||||||
control->connection = connection;
|
control->connection = connection;
|
||||||
connection->private = control;
|
connection->private = control;
|
||||||
|
|
||||||
ret = get_version(control);
|
|
||||||
if (ret)
|
|
||||||
kfree(control);
|
|
||||||
|
|
||||||
/* Set interface's control connection */
|
/* Set interface's control connection */
|
||||||
connection->bundle->intf->control = control;
|
connection->bundle->intf->control = control;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gb_control_connection_exit(struct gb_connection *connection)
|
static void gb_control_connection_exit(struct gb_connection *connection)
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
|
|
||||||
struct gb_control {
|
struct gb_control {
|
||||||
struct gb_connection *connection;
|
struct gb_connection *connection;
|
||||||
u8 version_major;
|
|
||||||
u8 version_minor;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int gb_control_connected_operation(struct gb_control *control, u16 cport_id);
|
int gb_control_connected_operation(struct gb_control *control, u16 cport_id);
|
||||||
|
|
Loading…
Reference in New Issue