Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [PATCH 2/3] ARM: mxs: add gpio-mxs platform devices | Date | Fri, 27 May 2011 10:48:00 +0200 |
| |
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
| |