diff options
| -rw-r--r-- | drivers/net/can/usb/ems_usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c index 33451092b8e8..d800b598ae3d 100644 --- a/drivers/net/can/usb/ems_usb.c +++ b/drivers/net/can/usb/ems_usb.c | |||
| @@ -1006,7 +1006,7 @@ static int ems_usb_probe(struct usb_interface *intf, | |||
| 1006 | 1006 | ||
| 1007 | netdev = alloc_candev(sizeof(struct ems_usb), MAX_TX_URBS); | 1007 | netdev = alloc_candev(sizeof(struct ems_usb), MAX_TX_URBS); |
| 1008 | if (!netdev) { | 1008 | if (!netdev) { |
| 1009 | dev_err(netdev->dev.parent, "Couldn't alloc candev\n"); | 1009 | dev_err(&intf->dev, "ems_usb: Couldn't alloc candev\n"); |
| 1010 | return -ENOMEM; | 1010 | return -ENOMEM; |
| 1011 | } | 1011 | } |
| 1012 | 1012 | ||
| @@ -1036,20 +1036,20 @@ static int ems_usb_probe(struct usb_interface *intf, | |||
| 1036 | 1036 | ||
| 1037 | dev->intr_urb = usb_alloc_urb(0, GFP_KERNEL); | 1037 | dev->intr_urb = usb_alloc_urb(0, GFP_KERNEL); |
| 1038 | if (!dev->intr_urb) { | 1038 | if (!dev->intr_urb) { |
| 1039 | dev_err(netdev->dev.parent, "Couldn't alloc intr URB\n"); | 1039 | dev_err(&intf->dev, "Couldn't alloc intr URB\n"); |
| 1040 | goto cleanup_candev; | 1040 | goto cleanup_candev; |
| 1041 | } | 1041 | } |
| 1042 | 1042 | ||
| 1043 | dev->intr_in_buffer = kzalloc(INTR_IN_BUFFER_SIZE, GFP_KERNEL); | 1043 | dev->intr_in_buffer = kzalloc(INTR_IN_BUFFER_SIZE, GFP_KERNEL); |
| 1044 | if (!dev->intr_in_buffer) { | 1044 | if (!dev->intr_in_buffer) { |
| 1045 | dev_err(netdev->dev.parent, "Couldn't alloc Intr buffer\n"); | 1045 | dev_err(&intf->dev, "Couldn't alloc Intr buffer\n"); |
| 1046 | goto cleanup_intr_urb; | 1046 | goto cleanup_intr_urb; |
| 1047 | } | 1047 | } |
| 1048 | 1048 | ||
| 1049 | dev->tx_msg_buffer = kzalloc(CPC_HEADER_SIZE + | 1049 | dev->tx_msg_buffer = kzalloc(CPC_HEADER_SIZE + |
| 1050 | sizeof(struct ems_cpc_msg), GFP_KERNEL); | 1050 | sizeof(struct ems_cpc_msg), GFP_KERNEL); |
| 1051 | if (!dev->tx_msg_buffer) { | 1051 | if (!dev->tx_msg_buffer) { |
| 1052 | dev_err(netdev->dev.parent, "Couldn't alloc Tx buffer\n"); | 1052 | dev_err(&intf->dev, "Couldn't alloc Tx buffer\n"); |
| 1053 | goto cleanup_intr_in_buffer; | 1053 | goto cleanup_intr_in_buffer; |
| 1054 | } | 1054 | } |
| 1055 | 1055 | ||
