Re: [PATCH 2/3] ARM: mxs: add gpio-mxs platform devices

From: Arnd Bergmann
Date: Fri May 27 2011 - 04:48:20 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/