lkml.org 
[lkml]   [2012]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v2 3/8] net: Add device tree support to LPC32xx
    Date
    On Monday 02 April 2012, Roland Stigge wrote:
    >
    > + if (pdev->dev.of_node && of_get_property(pdev->dev.of_node,
    > + "use-iram", NULL))
    > + pldat->use_iram = true;
    > + else
    > + pldat->use_iram = false;
    > +

    One more thing I just noticed:

    this is equivalent to the much shorter

    pldat->use_iram = of_property_read_bool(pdev->dev.of_node, "use-iram");

    Everything else looks good here.

    Arnd


    \
     
     \ /
      Last update: 2012-04-02 21:41    [W:0.019 / U:0.320 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site