Skip to content

Commit 638441b

Browse files
Dan Carpentergregkh
authored andcommitted
serial: 8250_lpc18xx: disable clks on error in probe()
Goto the clean up path to clean up a couple clocks before returning on this error path. Fixes: 0087b9e ("serial: 8250_lpc18xx: Switch to use uart_read_port_properties()") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/92646c10-e0b5-4117-a9ac-ce9987d33ce3@moroto.mountain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fec50db commit 638441b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_lpc18xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static int lpc18xx_serial_probe(struct platform_device *pdev)
151151

152152
ret = uart_read_port_properties(&uart.port);
153153
if (ret)
154-
return ret;
154+
goto dis_uart_clk;
155155

156156
uart.port.iotype = UPIO_MEM32;
157157
uart.port.regshift = 2;

0 commit comments

Comments
 (0)