Skip to content

Commit

Permalink
USB: fix usb-serial/generic build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Mar 26, 2007
1 parent 8a61499 commit b46d60f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
#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;

Expand Down

0 comments on commit b46d60f

Please sign in to comment.