aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters/ds2490.c
diff options
context:
space:
mode:
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>2006-04-03 04:04:27 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-22 14:22:50 -0400
commitabd52a13206e02537ca1dc08fc5438c7d27bdbf1 (patch)
treeefe0ff89898aad10600d392ac727dcea9e7af322 /drivers/w1/masters/ds2490.c
parent46e07f6e5eb0e465e086b8f485f4238bd453e3e9 (diff)
[PATCH] w1: Use mutexes instead of semaphores.
Use mutexes instead of semaphores. Patch tested on x86_64 and i386 with test bus master driver. Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/masters/ds2490.c')
-rw-r--r--drivers/w1/masters/ds2490.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c
index 637677833da5..299e274d241a 100644
--- a/drivers/w1/masters/ds2490.c
+++ b/drivers/w1/masters/ds2490.c
@@ -169,7 +169,7 @@ static int ds_send_control(struct ds_device *, u16, u16);
169static int ds_send_control_cmd(struct ds_device *, u16, u16); 169static int ds_send_control_cmd(struct ds_device *, u16, u16);
170 170
171static LIST_HEAD(ds_devices); 171static LIST_HEAD(ds_devices);
172static DECLARE_MUTEX(ds_mutex); 172static DEFINE_MUTEX(ds_mutex);
173 173
174static struct usb_driver ds_driver = { 174static struct usb_driver ds_driver = {
175 .name = "DS9490R", 175 .name = "DS9490R",
@@ -887,9 +887,9 @@ static int ds_probe(struct usb_interface *intf,
887 if (err) 887 if (err)
888 goto err_out_clear; 888 goto err_out_clear;
889 889
890 down(&ds_mutex); 890 mutex_lock(&ds_mutex);
891 list_add_tail(&dev->ds_entry, &ds_devices); 891 list_add_tail(&dev->ds_entry, &ds_devices);
892 up(&ds_mutex); 892 mutex_unlock(&ds_mutex);
893 893
894 return 0; 894 return 0;
895 895
@@ -909,9 +909,9 @@ static void ds_disconnect(struct usb_interface *intf)
909 if (!dev) 909 if (!dev)
910 return; 910 return;
911 911
912 down(&ds_mutex); 912 mutex_lock(&ds_mutex);
913 list_del(&dev->ds_entry); 913 list_del(&dev->ds_entry);
914 up(&ds_mutex); 914 mutex_unlock(&ds_mutex);
915 915
916 ds_w1_fini(dev); 916 ds_w1_fini(dev);
917 917