02 Jan, 2012

1 commit

  • Reimplement a call to devm_request_mem_region followed by a call to ioremap
    or ioremap_nocache by a call to devm_request_and_ioremap.

    The semantic patch that makes this transformation is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @nm@
    expression myname;
    identifier i;
    @@

    struct platform_driver i = { .driver = { .name = myname } };

    @@
    expression dev,res,size;
    expression nm.myname;
    @@

    -if (!devm_request_mem_region(dev, res->start, size,
    - \(res->name\|dev_name(dev)\|myname\))) {
    - ...
    - return ...;
    -}
    ... when != res->start
    (
    -devm_ioremap(dev,res->start,size)
    +devm_request_and_ioremap(dev,res)
    |
    -devm_ioremap_nocache(dev,res->start,size)
    +devm_request_and_ioremap(dev,res)
    )
    ... when any
    when != res->start
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Grant Likely

    Julia Lawall
     

01 Nov, 2011

1 commit


14 Oct, 2011

1 commit

  • v3: Make regs variable static. Remove empty init of tegra_gpio_banks.

    v2: Retrieve IRQ and memory addresses from resources instead of hard-
    coding them. Add back initialization of tegra_gpio_chip.of_node.

    Signed-off-by: Stephen Warren
    Acked-by: Grant Likely
    [olof: switched probe routine to __devinit]
    Signed-off-by: Olof Johansson

    Stephen Warren
     

27 Sep, 2011

1 commit


24 Aug, 2011

2 commits


06 Jul, 2011

1 commit


16 Jun, 2011

2 commits