Laurent Pinchart b6c5ef6f6d serial: sh-sci: Make probe fail for ports that exceed the maximum count
The driver supports a maximum number of ports configurable at compile
time. Make sure the probe() method fails when registering a port that
exceeds the maximum instead of returning success without registering the
port.

This fixes a crash at system suspend time, when the driver tried to
suspend a non-registered port using the UART core.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2012-06-13 10:22:10 +09:00
..
2012-01-24 12:55:36 -08:00
2012-03-28 18:30:01 +01:00
2012-05-22 16:12:24 -07:00
2012-03-28 18:30:03 +01:00
2012-01-26 11:29:47 -08:00
2012-03-28 18:30:03 +01:00
2011-02-17 11:16:15 -08:00
2012-05-11 15:01:57 +08:00
2011-03-31 11:26:23 -03:00
2012-02-10 10:25:27 -08:00
2011-03-31 11:26:23 -03:00
2011-09-22 16:08:57 -07:00
2011-08-26 11:01:15 -07:00
2012-05-22 16:12:24 -07:00
2012-04-18 15:57:31 -07:00
2012-04-23 09:39:23 -07:00
2012-03-27 16:47:35 -07:00
2011-09-22 16:08:57 -07:00
2012-03-23 17:19:37 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-01-26 17:14:50 -08:00
2012-01-26 17:14:50 -08:00
2012-03-28 18:30:03 +01:00