Re: [Resend] [PATCH 1/3] OMAP2EVM: add ethernet support (smc911x)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, 24 Jun 2008 18:55:26 +0530, "Arun KS" <getarunks@xxxxxxxxx> 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 :-)

-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
me@xxxxxxxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux