]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/joystick/iforce/iforce-packets.c
USB: remove warn() macro from usb input drivers
[linux-2.6-omap-h63xx.git] / drivers / input / joystick / iforce / iforce-packets.c
index 015b50aa76fcf5f7fe752b2f63cf857bdf9c9a26..a17b50016009a5bfc9518d0728022f3c6db3a375 100644 (file)
@@ -65,7 +65,8 @@ int iforce_send_packet(struct iforce *iforce, u16 cmd, unsigned char* data)
 
 
        if (CIRC_SPACE(head, tail, XMIT_SIZE) < n+2) {
-               warn("not enough space in xmit buffer to send new packet");
+               dev_warn(&iforce->dev->dev,
+                        "not enough space in xmit buffer to send new packet\n");
                spin_unlock_irqrestore(&iforce->xmit_lock, flags);
                return -1;
        }
@@ -148,7 +149,7 @@ static int mark_core_as_ready(struct iforce *iforce, unsigned short addr)
                        return 0;
                }
        }
-       warn("unused effect %04x updated !!!", addr);
+       dev_warn(&iforce->dev->dev, "unused effect %04x updated !!!\n", addr);
        return -1;
 }
 
@@ -159,7 +160,8 @@ void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data)
        static int being_used = 0;
 
        if (being_used)
-               warn("re-entrant call to iforce_process %d", being_used);
+               dev_warn(&iforce->dev->dev,
+                        "re-entrant call to iforce_process %d\n", being_used);
        being_used++;
 
 #ifdef CONFIG_JOYSTICK_IFORCE_232