From: David S. Miller Date: Fri, 30 Jun 2006 02:40:19 +0000 (-0700) Subject: [SERIAL] sunsu: Missing return statement in su_probe(). X-Git-Tag: MMI-PSA29.97-13-9~48621^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1d22d3258aed732e1778ecb2e840e6c95cb668e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [SERIAL] sunsu: Missing return statement in su_probe(). If we have a keyboard/mouse port, don't drop through to calling sunsu_autoconfig(). Signed-off-by: David S. Miller --- diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c index 73a043b914ef..5442792c6c72 100644 --- a/drivers/serial/sunsu.c +++ b/drivers/serial/sunsu.c @@ -1439,6 +1439,8 @@ static int __devinit su_probe(struct of_device *op, const struct of_device_id *m err = sunsu_kbd_ms_init(up); if (err) goto out_unmap; + + return 0; } up->port.flags |= UPF_BOOT_AUTOCONF;