serial: sh-sci: Fix probe error paths
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 12 Jun 2012 22:28:23 +0000 (00:28 +0200)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 13 Jun 2012 01:22:08 +0000 (10:22 +0900)
commit6dae14216c85eea13db7b12c469475c5d30e5499
treed38f40200b083dcab0f5c2876b14d2da6f9562ce
parent3777808873b0c49c5cf27e44c948dfb02675d578
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: Paul Mundt <lethal@linux-sh.org>
drivers/tty/serial/sh-sci.c