diff options
author | Bjørn Mork <bjorn@mork.no> | 2012-05-16 03:31:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-16 08:29:20 -0400 |
commit | 3a2300385f601fbd8aed67555a1a3fef5b3d4d10 (patch) | |
tree | 0f025e47ca7bcccd85bbaed416a73cc38b02d03d /drivers/usb/serial | |
parent | 5eaee54b1c52a83dc74445792cf49900a8050da8 (diff) |
USB: serial: generic driver is only for testing
Make some noise during probe to make sure the users
are aware of the intended purpose of this driver.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 130a57351c69..846506f05e12 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -845,6 +845,8 @@ static int usb_serial_probe(struct usb_interface *interface, | |||
845 | module_put(type->driver.owner); | 845 | module_put(type->driver.owner); |
846 | return -EIO; | 846 | return -EIO; |
847 | } | 847 | } |
848 | dev_info(&interface->dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n"); | ||
849 | dev_info(&interface->dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n"); | ||
848 | } | 850 | } |
849 | #endif | 851 | #endif |
850 | if (!num_ports) { | 852 | if (!num_ports) { |