On Thu, Sep 27, 2012 at 6:27 AM, vipul kumar samar
<vipulkumar.sa...@st.com> wrote:

>> +     clk_enable(pl022->clk);
>
> What happen in case clk_enable returns an error??

Same as today, it gets ignored. This is not uncommon among drivers,
there are just too many things to check. On many platforms the
clk_enable() just cannot return anything but 0,

For example in the SPEAr ultimately a gate clock seems to
be registered for this clock and the code handling enable
looks like this (drivers/clk/clk-gate.c):

static int clk_gate_enable(struct clk_hw *hw)
{
        clk_gate_endisable(hw, 1);

        return 0;
}

Yours,
Linus Walleij

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to