Hi,

This patch enables the cpia driver to build on 2.5.41.
Can anyone test it?

Thanks,
-- 
~Randy
  "In general, avoiding problems is better than solving them."
  -- from "#ifdef Considered Harmful", Spencer & Collyer, USENIX 1992.




--- ./drivers/media/video/cpia.h.2541   Mon Oct  7 11:24:52 2002
+++ ./drivers/media/video/cpia.h        Mon Oct  7 16:13:35 2002
@@ -378,8 +378,8 @@
 /* ErrorCode */
 #define ERROR_FLICKER_BELOW_MIN_EXP     0x01 /*flicker exposure got below minimum 
exposure */

-#define ALOG(lineno,fmt,args...) printk(fmt,lineno,##args)
-#define LOG(fmt,args...) ALOG((__LINE__),KERN_INFO 
__FILE__":"__FUNCTION__"(%d):"fmt,##args)
+#define ALOG(fmt,args...) printk(fmt, ##args)
+#define LOG(fmt,args...) ALOG(KERN_INFO __FILE__ ":%s(%d):" fmt, __FUNCTION__, 
+__LINE__, ##args)

 #ifdef _CPIA_DEBUG_
 #define ADBG(lineno,fmt,args...) printk(fmt, jiffies, lineno, ##args)
--- ./drivers/media/video/cpia_usb.c.2541       Mon Oct  7 11:22:55 2002
+++ ./drivers/media/video/cpia_usb.c    Mon Oct  7 15:35:14 2002
@@ -167,7 +167,7 @@
        /* resubmit */
        urb->dev = ucpia->dev;
        if ((i = usb_submit_urb(urb, GFP_ATOMIC)) != 0)
-               printk(KERN_ERR __FUNCTION__ ": usb_submit_urb ret %d\n", i);
+               printk(KERN_ERR "%s: usb_submit_urb ret %d\n", __FUNCTION__,  i);
 }

 static int cpia_usb_open(void *privdata)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to