X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fkobject_uevent.c;h=2a4e7671eaf4089bc03f96fdfa133723494af71a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=5c78b2187ce2640da0fc5c0961cd2f9bd55b489f;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 5c78b2187..2a4e7671e 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c @@ -179,7 +179,7 @@ static inline int send_uevent(const char *signal, const char *obj, #ifdef CONFIG_HOTPLUG char hotplug_path[HOTPLUG_PATH_LEN] = "/sbin/hotplug"; u64 hotplug_seqnum; -static spinlock_t sequence_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(sequence_lock); /** * kobject_hotplug - notify userspace by executing /sbin/hotplug