Thread (6 messages) read the whole thread 6 messages, 5 authors, 2012-06-20
STALE5155d

[PATCH 1/2] serial/amba-pl011: use devm_* allocators

From: Linus Walleij <hidden>
Date: 2012-06-18 06:37:20
Also in: linux-serial

On Sun, Jun 17, 2012 at 4:13 PM, Fabio Estevam [off-list ref] wrote:
On Sun, Jun 17, 2012 at 10:44 AM, Linus Walleij
[off-list ref] wrote:
quoted
? ? ? ?uap->pinctrl = devm_pinctrl_get(&dev->dev);
? ? ? ?if (IS_ERR(uap->pinctrl)) {
? ? ? ? ? ? ? ?ret = PTR_ERR(uap->pinctrl);
- ? ? ? ? ? ? ? goto unmap;
+ ? ? ? ? ? ? ? goto out;
? ? ? ?}
? ? ? ?uap->pins_default = pinctrl_lookup_state(uap->pinctrl,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? PINCTRL_STATE_DEFAULT);
@@ -1915,7 +1917,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
? ? ? ?uap->clk = clk_get(&dev->dev, NULL);
Maybe you can use devm_clk_get here too.
That requires all users of the driver to be using CONFIG_CLKDEV, which
I *think* is safe to do, but better check: Russell, do you know if
it's safe to use
this feature from clkdev in the PL011 driver?

It seems so to me and most likely works on the systems I have (Ux500, U300,
Nomadik, Integrator, RealView) but the world of PL011 is so big...

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