From: Laurent Pinchart Date: Tue, 12 Jun 2012 22:28:24 +0000 (+0200) Subject: serial: sh-sci: Make probe fail for ports that exceed the maximum count X-Git-Tag: v3.5-rc3~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6c5ef6f6d3e46d6200b141c30ac000a11b851df;p=pandora-kernel.git 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 Signed-off-by: Paul Mundt --- Reading git-diff-tree failed