]> err.no Git - linux-2.6/commitdiff
USB: fix usb-serial/generic build warning
authorDavid Brownell <david-b@pacbell.net>
Fri, 23 Mar 2007 19:51:55 +0000 (12:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Mar 2007 21:17:48 +0000 (14:17 -0700)
Fix annoying build warning when CONFIG_USB_SERIAL_GENERIC is undefined.

  drivers/usb/serial/generic.c:24: warning: `generic_probe' declared `static' but never defined

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c

index 53baeec8f265a041bc45ae3a3010cd6c30d71c7d..4f8282ad77208b66e4c406f826100cb300b5247a 100644 (file)
 #include <linux/usb/serial.h>
 #include <asm/uaccess.h>
 
-static int generic_probe(struct usb_interface *interface,
-                        const struct usb_device_id *id);
-
 
 static int debug;
 
 #ifdef CONFIG_USB_SERIAL_GENERIC
+
+static int generic_probe(struct usb_interface *interface,
+                        const struct usb_device_id *id);
+
 static __u16 vendor  = 0x05f9;
 static __u16 product = 0xffff;