lkml.org 
[lkml]   [2013]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] OMAP: omap4-panda: add WiLink shared transport power functions
From
On Wed, Jan 16, 2013 at 6:34 PM, Luciano Coelho <coelho@ti.com> wrote:

> +static int wilink_st_init(void)
> +{
> + int status;
> +
> + status = gpio_request(GPIO_BT_EN, "kim");
> + if (status) {
> + pr_err("%s: failed to request gpio %d\n", __func__,
> + GPIO_BT_EN);
> + return status;
> + }
> +
> + status = gpio_direction_output(GPIO_BT_EN, 0);
> + if (status)
> + pr_err("%s: unable to configure gpio %d", __func__,
> + GPIO_BT_EN);
> +

You could use gpio_request_one() instead.


\
 
 \ /
  Last update: 2013-01-16 23:01    [W:0.078 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site