lkml.org 
[lkml]   [2011]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 6/7] basic_mmio_gpio: support different input/output registers
On Fri, Apr 08, 2011 at 03:16:50PM +0100, Jamie Iles wrote:
[...]
> + res_in = platform_get_resource_byname(pdev, IORESOURCE_MEM, "in");
> + if (res_in) {
> + bgc->reg_in = bgpio_request_and_map(&pdev->dev, res_in);
> + if (!bgc->reg_in)
> + return -ENOMEM;
> + bgc->gc.get = bgpio_get_in;
> + } else {
> + bgc->gc.get = bgpio_get_dat;
> + }
> +
> + return 0;
> +}
> +
> return 0;
> }

Hm.. will this compile?

--
Anton Vorontsov
Email: cbouatmailru@gmail.com


\
 
 \ /
  Last update: 2011-04-08 16:39    [W:0.060 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site