linux/drivers/char/hw_random
Julia Lawall d0b03c5fe4 hwrng: tx4939 - use devm_request_and_ioremap
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/)

// <smpl>
@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
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2012-01-13 16:38:40 +11:00
..
amd-rng.c hwrng: amd - manage resource allocation 2011-05-04 15:13:15 +10:00
atmel-rng.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
core.c Update my e-mail address 2011-07-07 15:18:01 +02:00
geode-rng.c hwrng: Use PCI_VDEVICE 2009-06-25 13:50:53 +08:00
intel-rng.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ixp4xx-rng.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
Kconfig Merge branch 'for-linus' of git://github.com/richardweinberger/linux 2011-11-02 09:45:39 -07:00
Makefile hw_random: add driver for atmel true hardware random number generator 2011-10-10 12:42:49 +02:00
mxc-rnga.c i.MX31: Add hw-random for RNGA 2009-05-07 16:17:16 +02:00
n2-asm.S sparc64: Add Niagara2 RNG driver. 2008-07-18 00:46:09 -07:00
n2-drv.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
n2rng.h n2rng: Attach on Niagara-T3. 2011-07-28 01:26:30 -07:00
nomadik-rng.c hwrng: nomadik: Enable module alias autogeneration for AMBA drivers 2011-11-22 10:58:30 +00:00
octeon-rng.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
omap-rng.c hwrng: omap - add missing clk_put 2011-06-30 07:44:01 +08:00
pasemi-rng.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
picoxcell-rng.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
ppc4xx-rng.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
timeriomem-rng.c char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver() 2011-11-30 16:12:47 +08:00
tx4939-rng.c hwrng: tx4939 - use devm_request_and_ioremap 2012-01-13 16:38:40 +11:00
via-rng.c hwrng: via_rng - Fix memory scribbling on some CPUs 2011-01-07 14:55:06 +11:00
virtio-rng.c drivers/char: Add module.h to those who were using it implicitly 2011-10-31 19:31:40 -04:00