serial: sh-sci: Fix probe error paths
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 12 Jun 2012 22:28:23 +0000 (00:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 22:56:54 +0000 (15:56 -0700)
commit9800ee6f50a3b94181d4df57542b9379e331decb
treee2661c66a76e2cf287122c058ef0abb1983ce033
parent95f4d5f01bb56b4f940c8b44be8e71c5f35f2069
serial: sh-sci: Fix probe error paths

When probing fails, the driver must not try to cleanup resources that
have not been initialized. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c