omap: resource: Fix race in register_resource()
commitfd0cc6f0429c6c1c33d05bab2eb2713d18ce5d67
authorMike Chan <mike@android.com>
Thu, 17 Sep 2009 23:32:11 +0000 (17 16:32 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 23 Oct 2009 18:21:52 +0000 (23 11:21 -0700)
tree32a6f496017ec17a50dc8ca97e0f713c293ab982
parentb32960d2fd88085d6270c4f3a2f708e7ce42cd7b
omap: resource: Fix race in register_resource()

Checking if the resource is already registered and adding to the list
must be atomic or bad things can happen.

Signed-off-by: Mike Chan <mike@android.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/plat-omap/resource.c