USB: serial: f81534: abort probe on early errors
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:38 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:08 +0000 (11:00 +0200)
commit2f16621b9a06c1956eba57a23ff990bd24ceee82
tree7b1f350ed4caa1bc48c7e3768a387fad6c626e14
parentcac4cea513c7193512a58da4b1bfa46c04246546
USB: serial: f81534: abort probe on early errors

We can now abort probe early after an error in calc_num_ports by
returning an errno instead of attempting to continue probing but not
register any ports.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/f81534.c