int retval = 0, size;
if (!data) {
- dev_err(&dev->intf->dev, "out of memory\n");
+ dev_err(&dev->input->dev, "out of memory\n");
retval = -ENOMEM;
goto out;
}
BCM5974_WELLSPRING_MODE_REQUEST_INDEX, data, 8, 5000);
if (size != 8) {
- dev_err(&dev->intf->dev, "could not read from device\n");
+ dev_err(&dev->input->dev, "could not read from device\n");
retval = -EIO;
goto out;
}
BCM5974_WELLSPRING_MODE_REQUEST_INDEX, data, 8, 5000);
if (size != 8) {
- dev_err(&dev->intf->dev, "could not write to device\n");
+ dev_err(&dev->input->dev, "could not write to device\n");
retval = -EIO;
goto out;
}
exit:
error = usb_submit_urb(dev->bt_urb, GFP_ATOMIC);
if (error)
- dev_err(&dev->intf->dev, "button urb failed: %d\n", error);
+ dev_err(&dev->input->dev, "button urb failed: %d\n", error);
}
static void bcm5974_irq_trackpad(struct urb *urb)
exit:
error = usb_submit_urb(dev->tp_urb, GFP_ATOMIC);
if (error)
- dev_err(&dev->intf->dev, "trackpad urb failed: %d\n", error);
+ dev_err(&dev->input->dev, "trackpad urb failed: %d\n", error);
}
/*