浏览代码

[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 <davem@davemloft.net>
David S. Miller 19 年之前
父节点
当前提交
a1d22d3258
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/serial/sunsu.c

+ 2 - 0
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;