diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-08-31 20:06:32 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-08-31 20:06:32 +0000 |
commit | e447632dca7f231166c69ab04e6274f637b751f8 (patch) | |
tree | 2e04ef19ea04e109e6eee51524a3a3d195cf1fba /package/broadcom-diag/src | |
parent | ab21a5bd82649d3b3b859ccafebd24eb20f71b3a (diff) | |
download | upstream-e447632dca7f231166c69ab04e6274f637b751f8.tar.gz upstream-e447632dca7f231166c69ab04e6274f637b751f8.tar.bz2 upstream-e447632dca7f231166c69ab04e6274f637b751f8.zip |
package/broadcom-diag: use broadcast_uevent
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22860 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r-- | package/broadcom-diag/src/diag.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 3a2a69bb14..766a906da0 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -30,8 +30,8 @@ #include <linux/workqueue.h> #include <linux/skbuff.h> #include <linux/netlink.h> +#include <linux/kobject.h> #include <net/sock.h> -extern struct sock *uevent_sock; extern u64 uevent_next_seqnum(void); #include "gpio.h" @@ -1169,9 +1169,6 @@ static void hotplug_button(struct work_struct *work) struct event_t *event = container_of(work, struct event_t, wq); char *s; - if (!uevent_sock) - return; - event->skb = alloc_skb(2048, GFP_KERNEL); s = skb_put(event->skb, strlen(event->action) + 2); @@ -1179,7 +1176,7 @@ static void hotplug_button(struct work_struct *work) fill_event(event); NETLINK_CB(event->skb).dst_group = 1; - netlink_broadcast(uevent_sock, event->skb, 0, 1, GFP_KERNEL); + broadcast_uevent(event->skb, 0, 1, GFP_KERNEL); kfree(event); } |