kernel/3.1[02]: move MTD root device setup code to mtdcore
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 910-kobject_uevent.patch
1 --- a/lib/kobject_uevent.c
2 +++ b/lib/kobject_uevent.c
3 @@ -51,6 +51,18 @@ static const char *kobject_actions[] = {
4 [KOBJ_OFFLINE] = "offline",
5 };
6
7 +u64 uevent_next_seqnum(void)
8 +{
9 + u64 seq;
10 +
11 + mutex_lock(&uevent_sock_mutex);
12 + seq = ++uevent_seqnum;
13 + mutex_unlock(&uevent_sock_mutex);
14 +
15 + return seq;
16 +}
17 +EXPORT_SYMBOL_GPL(uevent_next_seqnum);
18 +
19 /**
20 * kobject_action_type - translate action string to numeric type
21 *