c5698c parent 9800ee6f50a3b94181d4df57542b9379e331decb author Laurent Pinchart 1339540104 +0200 committer Greg Kroah-Hartman 1339541814 -0700 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: Greg Kroah-Hartman