linux/drivers/char/hw_random
Grant Likely b1608d69cb drivercore: revert addition of of_match to struct device
Commit b826291c, "drivercore/dt: add a match table pointer to struct
device" added an of_match pointer to struct device to cache the
of_match_table entry discovered at driver match time.  This was unsafe
because matching is not an atomic operation with probing a driver.  If
two or more drivers are attempted to be matched to a driver at the
same time, then the cached matching entry pointer could get
overwritten.

This patch reverts the of_match cache pointer and reworks all users to
call of_match_device() directly instead.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-05-18 12:32:23 -06:00
..
amd-rng.c hwrng: Use PCI_VDEVICE 2009-06-25 13:50:53 +08:00
core.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08: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 hwrng: pixocell - add support for picoxcell TRNG 2011-01-23 18:59:19 +11:00
Makefile hwrng: pixocell - add support for picoxcell TRNG 2011-01-23 18:59:19 +11: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 drivercore: revert addition of of_match to struct device 2011-05-18 12:32:23 -06:00
n2rng.h of/device: Replace struct of_device with struct platform_device 2010-08-06 09:25:50 -06:00
nomadik-rng.c ARM: amba: make probe() functions take const id tables 2011-02-23 16:24:14 +00:00
octeon-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
omap-rng.c hwrng: omap - Convert release_resource to release_region/release_mem_region 2011-02-16 13:05:54 +11:00
pasemi-rng.c dt/powerpc: Eliminate users of of_platform_{,un}register_driver 2011-02-28 01:36:39 -07:00
picoxcell-rng.c hwrng: pixocell - add support for picoxcell TRNG 2011-01-23 18:59:19 +11:00
timeriomem-rng.c hwrng: timeriomem - Fix potential oops (request_mem_region/__devinit) 2009-06-03 19:28:03 +10:00
tx4939-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
via-rng.c hwrng: via_rng - Fix memory scribbling on some CPUs 2011-01-07 14:55:06 +11:00
virtio-rng.c virtio-rng: use virtqueue_xxx wrappers 2010-05-19 22:15:45 +09:30