mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 20:25:28 +07:00
greybus: usb: 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
a94e144864
commit
0a12a187fd
@ -20,8 +20,6 @@
|
|||||||
#define GB_USB_VERSION_MINOR 0x01
|
#define GB_USB_VERSION_MINOR 0x01
|
||||||
|
|
||||||
/* Greybus USB request types */
|
/* Greybus USB request types */
|
||||||
#define GB_USB_TYPE_INVALID 0x00
|
|
||||||
#define GB_USB_TYPE_PROTOCOL_VERSION 0x01
|
|
||||||
#define GB_USB_TYPE_HCD_START 0x02
|
#define GB_USB_TYPE_HCD_START 0x02
|
||||||
#define GB_USB_TYPE_HCD_STOP 0x03
|
#define GB_USB_TYPE_HCD_STOP 0x03
|
||||||
#define GB_USB_TYPE_HUB_CONTROL 0x04
|
#define GB_USB_TYPE_HUB_CONTROL 0x04
|
||||||
@ -39,9 +37,6 @@ struct gb_usb_hub_control_response {
|
|||||||
|
|
||||||
struct gb_usb_device {
|
struct gb_usb_device {
|
||||||
struct gb_connection *connection;
|
struct gb_connection *connection;
|
||||||
|
|
||||||
u8 version_major;
|
|
||||||
u8 version_minor;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd)
|
static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd)
|
||||||
@ -54,9 +49,6 @@ static inline struct usb_hcd *gb_usb_device_to_hcd(struct gb_usb_device *dev)
|
|||||||
return container_of((void *)dev, struct usb_hcd, hcd_priv);
|
return container_of((void *)dev, struct usb_hcd, hcd_priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define get_version() routine */
|
|
||||||
define_get_version(gb_usb_device, USB);
|
|
||||||
|
|
||||||
static void hcd_stop(struct usb_hcd *hcd)
|
static void hcd_stop(struct usb_hcd *hcd)
|
||||||
{
|
{
|
||||||
struct gb_usb_device *dev = to_gb_usb_device(hcd);
|
struct gb_usb_device *dev = to_gb_usb_device(hcd);
|
||||||
@ -183,11 +175,6 @@ static int gb_usb_connection_init(struct gb_connection *connection)
|
|||||||
gb_usb_dev->connection = connection;
|
gb_usb_dev->connection = connection;
|
||||||
connection->private = gb_usb_dev;
|
connection->private = gb_usb_dev;
|
||||||
|
|
||||||
/* Check for compatible protocol version */
|
|
||||||
retval = get_version(gb_usb_dev);
|
|
||||||
if (retval)
|
|
||||||
goto err_put_hcd;
|
|
||||||
|
|
||||||
hcd->has_tt = 1;
|
hcd->has_tt = 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user