diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-09-23 17:53:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 15:44:46 -0700 |
commit | 216fce2e78acd6558b6c16b28295ed7a639dd2c9 (patch) | |
tree | d4df68203a5112aa78c608bd5229c0d68ec08c87 /drivers/tty/serial/clps711x.c | |
parent | 7a95b815da307d66430f30d7b18dcddce62507bd (diff) | |
download | linux-216fce2e78acd6558b6c16b28295ed7a639dd2c9.tar.gz linux-216fce2e78acd6558b6c16b28295ed7a639dd2c9.tar.bz2 linux-216fce2e78acd6558b6c16b28295ed7a639dd2c9.zip |
serial: clps711x: drop needless devm_clk_put
The nice thing about devm_* is that the driver doesn't need to free the
resources but the driver core takes care about that.
These calls were introduced in commit c08f015 (serial: clps711x: Using
CPU clock subsystem for getting base UART speed).
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Alexander Shiyan <shc_work@mail.ru>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/clps711x.c')
-rw-r--r-- | drivers/tty/serial/clps711x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/serial/clps711x.c b/drivers/tty/serial/clps711x.c index 7e4e4088471c..8d0b994357c8 100644 --- a/drivers/tty/serial/clps711x.c +++ b/drivers/tty/serial/clps711x.c @@ -459,7 +459,6 @@ static int uart_clps711x_probe(struct platform_device *pdev) ret = uart_register_driver(&s->uart); if (ret) { dev_err(&pdev->dev, "Registering UART driver failed\n"); - devm_clk_put(&pdev->dev, s->uart_clk); return ret; } @@ -487,7 +486,6 @@ static int uart_clps711x_remove(struct platform_device *pdev) for (i = 0; i < UART_CLPS711X_NR; i++) uart_remove_one_port(&s->uart, &s->port[i]); - devm_clk_put(&pdev->dev, s->uart_clk); uart_unregister_driver(&s->uart); return 0; |