lkml.org 
[lkml]   [2011]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/3] ARM: mxs: add gpio-mxs platform devices
Date
On Friday 27 May 2011, Shawn Guo wrote:

> > I know it's tempting to use macros for these, but I think it obscures
> > the code a lot, especially when you use them to concatenate identifier
> > names. Why not just do:
> >
> > struct platform_device *gpios;
> > gpios = platform_device_register_simple(mxs_host_bus, "mxs-gpio-master", 0, NULL, 0);
> >
> platform_device_register_simple does not have parameter for 'parent',
> and it sets 'parent' NULL anyway.
>

Oops, my mistake. just use platform_device_register_resndata directly then.

Arnd


\
 
 \ /
  Last update: 2011-05-27 10:51    [W:0.059 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site