}
if (pos + tmp->len > actual_len) {
- dev_err_ratelimited(dev->udev->dev.parent,
+ dev_err_ratelimited(&dev->intf->dev,
"Format error\n");
break;
}
tid = cmd->u.tx_acknowledge_header.tid;
if (channel >= dev->nchannels) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Invalid channel number (%d)\n", channel);
return;
}
enum can_state old_state, new_state;
if (es->channel >= dev->nchannels) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Invalid channel number (%d)\n", es->channel);
return;
}
channel = es->channel;
if (channel >= dev->nchannels) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Invalid channel number (%d)\n", channel);
return;
}
break;
default:
- dev_err(dev->udev->dev.parent, "Invalid cmd id (%d)\n",
- cmd->id);
+ dev_err(&dev->intf->dev, "Invalid cmd id (%d)\n", cmd->id);
}
}
es.leaf.error_factor = 0;
break;
default:
- dev_err(dev->udev->dev.parent, "Invalid cmd id (%d)\n",
- cmd->id);
+ dev_err(&dev->intf->dev, "Invalid cmd id (%d)\n", cmd->id);
return;
}
const u8 *rx_data = NULL; /* GCC */
if (channel >= dev->nchannels) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Invalid channel number (%d)\n", channel);
return;
}
u8 channel = cmd->u.simple.channel;
if (channel >= dev->nchannels) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Invalid channel number (%d)\n", channel);
return;
}
u8 channel = cmd->u.simple.channel;
if (channel >= dev->nchannels) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Invalid channel number (%d)\n", channel);
return;
}
break;
default:
-warn: dev_warn(dev->udev->dev.parent,
- "Unhandled command (%d)\n", cmd->id);
+warn: dev_warn(&dev->intf->dev, "Unhandled command (%d)\n", cmd->id);
break;
}
}
case -ESHUTDOWN:
return;
default:
- dev_info(dev->udev->dev.parent, "Rx URB aborted (%d)\n",
- urb->status);
+ dev_info(&dev->intf->dev, "Rx URB aborted (%d)\n", urb->status);
goto resubmit_urb;
}
}
if (pos + cmd->len > urb->actual_length) {
- dev_err_ratelimited(dev->udev->dev.parent,
- "Format error\n");
+ dev_err_ratelimited(&dev->intf->dev, "Format error\n");
break;
}
netif_device_detach(dev->nets[i]->netdev);
}
} else if (err) {
- dev_err(dev->udev->dev.parent,
+ dev_err(&dev->intf->dev,
"Failed resubmitting read bulk urb: %d\n", err);
}
}
buf = usb_alloc_coherent(dev->udev, RX_BUFFER_SIZE,
GFP_KERNEL, &buf_dma);
if (!buf) {
- dev_warn(dev->udev->dev.parent,
+ dev_warn(&dev->intf->dev,
"No memory left for USB buffer\n");
usb_free_urb(urb);
err = -ENOMEM;
}
if (i == 0) {
- dev_warn(dev->udev->dev.parent,
- "Cannot setup read URBs, error %d\n", err);
+ dev_warn(&dev->intf->dev, "Cannot setup read URBs, error %d\n",
+ err);
return err;
} else if (i < MAX_RX_URBS) {
- dev_warn(dev->udev->dev.parent,
- "RX performances may be slow\n");
+ dev_warn(&dev->intf->dev, "RX performances may be slow\n");
}
dev->rxinitdone = true;