speedtch cxacru.c,1.45,1.46 speedtch.c,1.79,1.80 usbatm.c,1.67,1.68

Duncan Sands duncan at infradead.org
Wed Oct 11 03:51:37 EDT 2006


Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv22896

Modified Files:
	cxacru.c speedtch.c usbatm.c 
Log Message:
Remove struct pt_regs argument in completion handlers.  Use current rather
than get_current().


Index: cxacru.c
===================================================================
RCS file: /home/cvs/speedtch/cxacru.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- cxacru.c	5 Oct 2006 09:01:22 -0000	1.45
+++ cxacru.c	11 Oct 2006 07:51:33 -0000	1.46
@@ -171,7 +171,7 @@
 };
 
 /* the following three functions are stolen from drivers/usb/core/message.c */
-static void cxacru_blocking_completion(struct urb *urb, struct pt_regs *regs)
+static void cxacru_blocking_completion(struct urb *urb)
 {
 	complete((struct completion *)urb->context);
 }

Index: speedtch.c
===================================================================
RCS file: /home/cvs/speedtch/speedtch.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- speedtch.c	4 Oct 2006 20:37:58 -0000	1.79
+++ speedtch.c	11 Oct 2006 07:51:34 -0000	1.80
@@ -604,7 +604,7 @@
 	}
 }
 
-static void speedtch_handle_int(struct urb *int_urb, struct pt_regs *regs)
+static void speedtch_handle_int(struct urb *int_urb)
 {
 	struct speedtch_instance_data *instance = int_urb->context;
 	struct usbatm_data *usbatm = instance->usbatm;

Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- usbatm.c	29 Sep 2006 09:34:34 -0000	1.67
+++ usbatm.c	11 Oct 2006 07:51:34 -0000	1.68
@@ -254,7 +254,7 @@
 	return ret;
 }
 
-static void usbatm_complete(struct urb *urb, struct pt_regs *regs)
+static void usbatm_complete(struct urb *urb)
 {
 	struct usbatm_channel *channel = urb->context;
 	unsigned long flags;
@@ -1001,7 +1001,7 @@
 
 	daemonize(instance->driver->driver_name);
 	allow_signal(SIGTERM);
-	instance->thread_pid = get_current()->pid;
+	instance->thread_pid = current->pid;
 
 	complete(&instance->thread_started);
 




More information about the Usbatm-commits mailing list