View | Details | Raw Unified | Return to bug 11585
Collapse All | Expand All

(-)linux.orig/drivers/usb/serial/usb-serial.c (-6 / +6 lines)
Lines 908-913 Link Here
908
	} else if (num_interrupt_out) {
908
	} else if (num_interrupt_out) {
909
		dbg("the device claims to support interrupt out transfers, but write_int_callback is not defined");
909
		dbg("the device claims to support interrupt out transfers, but write_int_callback is not defined");
910
	}
910
	}
911
912
	if (get_free_serial (serial, num_ports, &minor) == NULL) {
913
		dev_err(&interface->dev, "No more free serial devices\n");
914
		goto probe_error;
915
	}
916
	serial->minor = minor;
911
	
917
	
912
	/* if this device type has an attach function, call it */
918
	/* if this device type has an attach function, call it */
913
	if (type->attach) {
919
	if (type->attach) {
Lines 926-937 Link Here
926
		}
932
		}
927
	}
933
	}
928
934
929
	if (get_free_serial (serial, num_ports, &minor) == NULL) {
930
		dev_err(&interface->dev, "No more free serial devices\n");
931
		goto probe_error;
932
	}
933
	serial->minor = minor;
934
935
	/* register all of the individual ports with the driver core */
935
	/* register all of the individual ports with the driver core */
936
	for (i = 0; i < num_ports; ++i) {
936
	for (i = 0; i < num_ports; ++i) {
937
		port = serial->port[i];
937
		port = serial->port[i];

Return to bug 11585