Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303617
b: refs/heads/master
c: 9c113dc
h: refs/heads/master
i:
  303615: 4002188
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 25, 2012
1 parent bbcd610 commit cc59fe6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08813d35d2ac6f304a53eb3a9ee59283fa7cc67f
refs/heads/master: 9c113dc67ab712e1bb82e974e51c49a678562713
25 changes: 14 additions & 11 deletions trunk/drivers/input/mouse/appletouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int atp_geyser_init(struct usb_device *udev)

data = kmalloc(8, GFP_KERNEL);
if (!data) {
err("Out of memory");
dev_err(&udev->dev, "Out of memory\n");
return -ENOMEM;
}

Expand All @@ -277,7 +277,7 @@ static int atp_geyser_init(struct usb_device *udev)
for (i = 0; i < 8; i++)
dprintk("appletouch[%d]: %d\n", i, data[i]);

err("Failed to read mode from device.");
dev_err(&udev->dev, "Failed to read mode from device.\n");
ret = -EIO;
goto out_free;
}
Expand All @@ -296,7 +296,7 @@ static int atp_geyser_init(struct usb_device *udev)
for (i = 0; i < 8; i++)
dprintk("appletouch[%d]: %d\n", i, data[i]);

err("Failed to request geyser raw mode");
dev_err(&udev->dev, "Failed to request geyser raw mode\n");
ret = -EIO;
goto out_free;
}
Expand All @@ -321,8 +321,9 @@ static void atp_reinit(struct work_struct *work)

retval = usb_submit_urb(dev->urb, GFP_ATOMIC);
if (retval)
err("atp_reinit: usb_submit_urb failed with error %d",
retval);
dev_err(&udev->dev,
"atp_reinit: usb_submit_urb failed with error %d\n",
retval);
}

static int atp_calculate_abs(int *xy_sensors, int nb_sensors, int fact,
Expand Down Expand Up @@ -588,8 +589,9 @@ static void atp_complete_geyser_1_2(struct urb *urb)
exit:
retval = usb_submit_urb(dev->urb, GFP_ATOMIC);
if (retval)
err("atp_complete: usb_submit_urb failed with result %d",
retval);
dev_err(&dev->udev->dev,
"atp_complete: usb_submit_urb failed with result %d\n",
retval);
}

/* Interrupt function for older touchpads: GEYSER3/GEYSER4 */
Expand Down Expand Up @@ -722,8 +724,9 @@ static void atp_complete_geyser_3_4(struct urb *urb)
exit:
retval = usb_submit_urb(dev->urb, GFP_ATOMIC);
if (retval)
err("atp_complete: usb_submit_urb failed with result %d",
retval);
dev_err(&dev->udev->dev,
"atp_complete: usb_submit_urb failed with result %d\n",
retval);
}

static int atp_open(struct input_dev *input)
Expand Down Expand Up @@ -785,15 +788,15 @@ static int atp_probe(struct usb_interface *iface,
}
}
if (!int_in_endpointAddr) {
err("Could not find int-in endpoint");
dev_err(&iface->dev, "Could not find int-in endpoint\n");
return -EIO;
}

/* allocate memory for our device state and initialize it */
dev = kzalloc(sizeof(struct atp), GFP_KERNEL);
input_dev = input_allocate_device();
if (!dev || !input_dev) {
err("Out of memory");
dev_err(&iface->dev, "Out of memory\n");
goto err_free_devs;
}

Expand Down

0 comments on commit cc59fe6

Please sign in to comment.