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
01 Nov, 2011
1 commit
-
Conflicts:
arch/arm/mach-mxs/include/mach/gpio.h
arch/arm/plat-mxc/include/mach/gpio.hSigned-off-by: Arnd Bergmann
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
27 Sep, 2011
1 commit
-
This will eventually allow to be deleted. This mirrors
LinusW's recent equivalent work on various other ARM platforms.Signed-off-by: Stephen Warren
Acked-by: Olof Johansson
Signed-off-by: Russell King
24 Aug, 2011
2 commits
-
Signed-off-by: Stephen Warren
Signed-off-by: Russell King -
irq_to_gpio is being removed. Replace the only use of that API by
the ARM Tegra sub-architecture.Signed-off-by: Stephen Warren
Signed-off-by: Russell King
06 Jul, 2011
1 commit
-
Engineering names are more stable than marketing names. Hence, use them
for Device Tree compatible properties instead.Signed-off-by: Stephen Warren
Signed-off-by: Grant Likely
16 Jun, 2011
2 commits
-
Add support for decoding gpios from the device tree
Signed-off-by: Grant Likely
Acked-by: Olof Johansson -
As part of the gpio driver consolidation, this patch moves the Tegra driver
into drivers/gpioSigned-off-by: Grant Likely
Acked-by: Olof Johansson
Acked-by: Colin Cross