All of lore.kernel.org
 help / color / mirror / Atom feed
From: viresh.kumar@st.com (Viresh KUMAR)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] GPIO PL061: Adding Clk framework support
Date: Tue, 22 Jun 2010 10:12:29 +0530	[thread overview]
Message-ID: <4C203F35.3060402@st.com> (raw)
In-Reply-To: <AANLkTimtw4_M4V1ZinQfvi8BGarElXjr47PvTpbQJeiy@mail.gmail.com>

On 6/22/2010 9:51 AM, Rabin Vincent wrote:
> On Tue, Jun 22, 2010 at 9:37 AM, Viresh KUMAR <viresh.kumar@st.com> wrote:
>> +static int pl061_request(struct gpio_chip *gc, unsigned offset)
>> +{
>> +       struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
>> +       int ret;
>> +
>> +       if (offset >= gc->ngpio)
>> +               return -EINVAL;
>> +
>> +       if (chip->clk)
>> +               ret = clk_enable(chip->clk);
>> +
>> +       return ret
> 
> Also, returning uninitialized values when chip->clk is not set.
> 
> You can probably just not register these callbacks for the
> !chip->clk case.
> 

Sorry. Will correct it.

  reply	other threads:[~2010-06-22  4:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-22  4:07 [PATCH v2] GPIO PL061: Adding Clk framework support Viresh KUMAR
2010-06-22  4:21 ` Rabin Vincent
2010-06-22  4:42   ` Viresh KUMAR [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-06-21  6:57 [PATCH V2] " Viresh KUMAR
2010-06-21 15:41 ` Rabin Vincent
2010-06-21 17:34   ` Linus Walleij
2010-06-22  4:00     ` Viresh KUMAR
2010-06-21 17:41 ` Baruch Siach
2010-06-22  4:07   ` Viresh KUMAR

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C203F35.3060402@st.com \
    --to=viresh.kumar@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.