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.020 / U:60.580 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site