ret = gb_operation_sync(dev->connection, GB_USB_TYPE_HCD_STOP,
NULL, 0, NULL, 0);
if (ret)
- dev_err(&dev->connection->dev, "HCD stop failed '%d'\n", ret);
+ dev_err(&dev->connection->bundle->dev,
+ "HCD stop failed '%d'\n", ret);
}
static int hcd_start(struct usb_hcd *hcd)
ret = gb_operation_sync(dev->connection, GB_USB_TYPE_HCD_START,
NULL, 0, NULL, 0);
if (ret) {
- dev_err(&dev->connection->dev, "HCD start failed '%d'\n", ret);
+ dev_err(&dev->connection->bundle->dev,
+ "HCD start failed '%d'\n", ret);
return ret;
}
static int gb_usb_connection_init(struct gb_connection *connection)
{
- struct device *dev = &connection->dev;
+ struct device *dev = &connection->bundle->dev;
struct gb_usb_device *gb_usb_dev;
struct usb_hcd *hcd;
* Disable for now.
*/
if (1) {
- dev_warn(&connection->dev, "USB protocol disabled\n");
+ dev_warn(dev, "USB protocol disabled\n");
retval = -EPROTONOSUPPORT;
goto err_put_hcd;
}