From 4149596e58910e5bb7fbfc8843e96256eb19f822 Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 31 Aug 2010 20:06:32 +0000 Subject: [PATCH] package/broadcom-diag: use broadcast_uevent git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22860 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/broadcom-diag/Makefile | 2 +- package/broadcom-diag/src/diag.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package/broadcom-diag/Makefile b/package/broadcom-diag/Makefile index 7e4dbb977..b4b91dba3 100644 --- a/package/broadcom-diag/Makefile +++ b/package/broadcom-diag/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=broadcom-diag -PKG_RELEASE:=8 +PKG_RELEASE:=9 include $(INCLUDE_DIR)/package.mk diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 3a2a69bb1..766a906da 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -30,8 +30,8 @@ #include #include #include +#include #include -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); }