]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: cdc-acm.c: Fix compile warnings
authorTakashi Iwai <tiwai@suse.de>
Thu, 31 Jul 2008 17:06:13 +0000 (19:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Aug 2008 00:32:56 +0000 (17:32 -0700)
The irq flags should be unsigned long.

  CC [M]  drivers/usb/class/cdc-acm.o
drivers/usb/class/cdc-acm.c: In function 'acm_waker':
drivers/usb/class/cdc-acm.c:527: warning: comparison of distinct pointer types lacks a cast
drivers/usb/class/cdc-acm.c:529: warning: comparison of distinct pointer types lacks a cast

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c

index 0725b1871f23f757b8012dde88cb08ee90e9b3b7..a92395bf5f5b31d5158820be5a9b526947e8d749 100644 (file)
@@ -512,7 +512,7 @@ static void acm_softint(struct work_struct *work)
 static void acm_waker(struct work_struct *waker)
 {
        struct acm *acm = container_of(waker, struct acm, waker);
-       long flags;
+       unsigned long flags;
        int rv;
 
        rv = usb_autopm_get_interface(acm->control);