Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55871
b: refs/heads/master
c: 9f7afa6
h: refs/heads/master
i:
  55869: fe04f23
  55867: 3aa13e9
  55863: 535b834
  55855: c8890d4
  55839: 8be746f
  55807: d3f5cf8
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Wim Van Sebroeck committed May 4, 2007
1 parent a6b55bf commit d182041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: dbf379ea9ae878bf88d2b3cf8f74ce4536e25d19
refs/heads/master: 9f7afa6b3405a2ceb9403153357564a93f14cde8
8 changes: 4 additions & 4 deletions trunk/drivers/char/watchdog/pcwd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct usb_pcwd_private {
atomic_t cmd_received; /* true if we received a report after a command */

int exists; /* Wether or not the device exists */
struct semaphore sem; /* locks this structure */
struct mutex mtx; /* locks this structure */
};
static struct usb_pcwd_private *usb_pcwd_device;

Expand Down Expand Up @@ -635,7 +635,7 @@ static int usb_pcwd_probe(struct usb_interface *interface, const struct usb_devi

usb_pcwd_device = usb_pcwd;

init_MUTEX (&usb_pcwd->sem);
mutex_init(&usb_pcwd->mtx);
usb_pcwd->udev = udev;
usb_pcwd->interface = interface;
usb_pcwd->interface_number = iface_desc->desc.bInterfaceNumber;
Expand Down Expand Up @@ -763,7 +763,7 @@ static void usb_pcwd_disconnect(struct usb_interface *interface)
usb_pcwd = usb_get_intfdata (interface);
usb_set_intfdata (interface, NULL);

down (&usb_pcwd->sem);
mutex_lock(&usb_pcwd->mtx);

/* Stop the timer before we leave */
if (!nowayout)
Expand All @@ -777,7 +777,7 @@ static void usb_pcwd_disconnect(struct usb_interface *interface)
misc_deregister(&usb_pcwd_temperature_miscdev);
unregister_reboot_notifier(&usb_pcwd_notifier);

up (&usb_pcwd->sem);
mutex_unlock(&usb_pcwd->mtx);

/* Delete the USB PCWD device */
usb_pcwd_delete(usb_pcwd);
Expand Down

0 comments on commit d182041

Please sign in to comment.