patch "Revert "tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart"" added to tty-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Revert "tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart"
to my tty git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
in the tty-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 092a9f59bc05904d4555fa012db12e768734ba1a Mon Sep 17 00:00:00 2001
From: Florian Fainelli <[email protected]>
Date: Thu, 30 Apr 2020 18:39:04 -0700
Subject: Revert "tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart"
This reverts commit 580d952e44de5509c69c8f9346180ecaa78ebeec ("tty:
serial: bcm63xx: fix missing clk_put() in bcm63xx_uart") because we should not be doing a clk_put() if we were not successful in getting a valid clock reference via clk_get() in the first place.
--- drivers/tty/serial/bcm63xx_uart.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/tty/serial/bcm63xx_uart.c +1 -3
@@ -843,10 +843,8 @@ static int bcm_uart_probe(struct platform_device *pdev)if (IS_ERR (clk) && pdev->dev.of_node) clk =of_clk_get (pdev->dev.of_node,0 ); -if (IS_ERR (clk)) { -clk_put (clk); +if (IS_ERR (clk))return -ENODEV ; - } port->iotype =UPIO_MEM ; port->irq = res_irq->start;
Signature · 1 line
2.26.2