Changeset 22859


Ignore:
Timestamp:
2010-08-31T22:06:30+02:00 (6 years ago)
Author:
juhosg
Message:

package/button-hotplug: use brodcast_uevent

Location:
trunk/package/button-hotplug
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/button-hotplug/Makefile

    r22145 r22859  
    11# 
    2 # Copyright (C) 2008 OpenWrt.org 
     2# Copyright (C) 2008-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010 
    1111PKG_NAME:=button-hotplug 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/button-hotplug/src/button-hotplug.c

    r21074 r22859  
    2222#include <linux/skbuff.h> 
    2323#include <linux/netlink.h> 
    24 #include <net/sock.h> 
     24#include <linux/kobject.h> 
    2525 
    2626#define DRV_NAME        "button-hotplug" 
    27 #define DRV_VERSION     "0.4.0" 
     27#define DRV_VERSION     "0.4.1" 
    2828#define DRV_DESC        "Button Hotplug driver" 
    2929 
     
    6565}; 
    6666 
    67 extern struct sock *uevent_sock; 
    6867extern u64 uevent_next_seqnum(void); 
    6968 
     
    161160        int ret = 0; 
    162161 
    163         if (!uevent_sock) 
    164                 goto out_free_event; 
    165  
    166162        event->skb = alloc_skb(BH_SKB_SIZE, GFP_KERNEL); 
    167163        if (!event->skb) 
     
    177173 
    178174        NETLINK_CB(event->skb).dst_group = 1; 
    179         netlink_broadcast(uevent_sock, event->skb, 0, 1, GFP_KERNEL); 
     175        broadcast_uevent(event->skb, 0, 1, GFP_KERNEL); 
    180176 
    181177 out_free_skb: 
Note: See TracChangeset for help on using the changeset viewer.