summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index 9ce58c52c9..c337294c1f 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -58,7 +58,9 @@ extern struct device **last_dev_p;
*
* @see device_path
*/
-static spinlock_t dev_lock = SPIN_LOCK_UNLOCKED;
+
+DECLARE_SPIN_LOCK(dev_lock)
+
device_t alloc_dev(struct bus *parent, struct device_path *path)
{
device_t dev, child;