USB: serial: generic driver is only for testing
authorBjørn Mork <bjorn@mork.no>
Wed, 16 May 2012 07:31:54 +0000 (09:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2012 12:29:20 +0000 (05:29 -0700)
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>
drivers/usb/serial/usb-serial.c

index 130a57351c6948cd8e253f4586d30074f3f8bfac..846506f05e12b61524c5117e2f91c6dba884df24 100644 (file)
@@ -845,6 +845,8 @@ static int usb_serial_probe(struct usb_interface *interface,
                        module_put(type->driver.owner);
                        return -EIO;
                }
+               dev_info(&interface->dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n");
+               dev_info(&interface->dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n");
        }
 #endif
        if (!num_ports) {