[PATCH 01/11] input: ambakmi: Add missing clk_[un]prepare() calls
Pawel Moll
pawel.moll at arm.com
Tue Sep 4 09:45:41 EDT 2012
On Tue, 2012-09-04 at 14:37 +0100, Thomas Petazzoni wrote:
> > --- a/drivers/input/serio/ambakmi.c
> > +++ b/drivers/input/serio/ambakmi.c
> > @@ -72,10 +72,14 @@ static int amba_kmi_open(struct serio *io)
> > unsigned int divisor;
> > int ret;
> >
> > - ret = clk_enable(kmi->clk);
> > + ret = clk_prepare(kmi->clk);
> > if (ret)
> > goto out;
> >
> > + ret = clk_enable(kmi->clk);
> > + if (ret)
> > + goto clk_unprepare;
> > +
>
> What about using clk_prepare_enable() here?
>
> > free_irq(kmi->irq, kmi);
> > clk_disable(kmi->clk);
> > + clk_unprepare(kmi->clk);
>
> And clk_disable_unprepare() here?
Sure thing, thanks for pointing that out!
Pawel
More information about the linux-arm-kernel
mailing list