USB: serial: add probe callback to generic driver
Add a probe callback to the generic driver and print the only-for-testing message there. This is a first step in getting rid of the CONFIG_USB_SERIAL_GENERIC ifdef from usb-serial core. Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
@@ -858,8 +858,6 @@ static int usb_serial_probe(struct usb_interface *interface,
|
||||
retval = -EIO;
|
||||
goto err_free_epds;
|
||||
}
|
||||
dev_info(ddev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n");
|
||||
dev_info(ddev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n");
|
||||
}
|
||||
#endif
|
||||
if (!num_ports) {
|
||||
|
Reference in New Issue
Block a user