All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun KS <arunks@mistralsolutions.com>
To: Felipe Balbi <me@felipebalbi.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [Resend] [PATCH 1/3] OMAP2EVM: add ethernet support (smc911x)
Date: Tue, 24 Jun 2008 20:20:30 +0530	[thread overview]
Message-ID: <486109B6.8020009@mistralsolutions.com> (raw)
In-Reply-To: <48e8658f507de35e2fab060ca2a9db43@felipebalbi.com>

Hi Felipe,

Thanks for your comments. I will incorporate those changes
and will send back.

Regards
Arun
Felipe Balbi wrote:
> Hi,
>
> On Tue, 24 Jun 2008 18:55:26 +0530, "Arun KS" <getarunks@gmail.com> wrote:
>
>   
>> +static inline void __init omap2evm_init_smc911x(void)
>> +{
>> +       int gpio = OMAP2EVM_ETHR_GPIO_IRQ;
>> +       int ret;
>> +
>> +       ret = gpio_request(gpio, "smc911x IRQ");
>> +       if (ret >= 0)
>> +               gpio_direction_input(gpio);
>> +       else
>> +               printk(KERN_ERR "Failed to request GPIO for smc911x
>>     
>
> this would look better like this:
>
>           if (ret < 0) {
>              printk(KERN_ERR "Failed to request GPIO %d for smc911x IRQ\n",
> gpio);
>              return;
>           }
>
>           gpio_direction_input(gpio);
>
>
> besides this, it looks fine :-)
>
>   


Please do not print this email unless it is absolutely necessary. Spread environmental awareness.

-------------------------------------------------------DISCLAIMER------------------------------------------------------
The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
--------------------------------------------------------------------------------------------------------------------------------




  reply	other threads:[~2008-06-24 14:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24 12:04 [PATCH 1/3] OMAP2EVM: add ethernet support (smc911x) Arun KS
2008-06-24 12:12 ` Felipe Balbi
2008-06-24 12:29   ` Arun KS
2008-06-24 12:54   ` Arun KS
2008-06-24 12:57     ` Felipe Balbi
2008-06-24 13:25       ` [Resend] " Arun KS
2008-06-24 14:18         ` Felipe Balbi
2008-06-24 14:50           ` Arun KS [this message]
2008-06-24 15:06           ` Arun KS
2008-06-24 15:25             ` Felipe Balbi
2008-06-24 15:41               ` Arun KS

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=486109B6.8020009@mistralsolutions.com \
    --to=arunks@mistralsolutions.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=me@felipebalbi.com \
    /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.