Thread (12 messages) 12 messages, 4 authors, 2015-02-04
STALE4188d

[PATCH v3] mmc: moxart: fix probe logic

From: arnd@arndb.de (Arnd Bergmann)
Date: 2015-02-03 09:06:51
Also in: linux-mmc

On Tuesday 03 February 2015 09:02:22 Ulf Hansson wrote:
quoted
@@ -586,10 +588,11 @@ static int moxart_probe(struct platform_device *pdev)
                goto out;
        }

-       clk = of_clk_get(node, 0);
This code would be simpler using devm_clk_get(), since then error
wouldn't be needed.

Any reason to why you don't want to use that?
You are absolutely right, and that would have avoided both of the bugs
I introduced.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help