]> Pileus Git - ~andy/linux/blobdiff - drivers/net/netconsole.c
bnx2x: semi-Semantic changes
[~andy/linux] / drivers / net / netconsole.c
index 59ac143dec2576a697d9f383ef4d5d7372eef93c..1d1d0a12765ce943b1bb309bdcbc0534908d8f53 100644 (file)
@@ -653,12 +653,11 @@ static struct configfs_subsystem netconsole_subsys = {
 
 /* Handle network interface device notifications */
 static int netconsole_netdev_event(struct notifier_block *this,
-                                  unsigned long event,
-                                  void *ptr)
+                                  unsigned long event, void *ptr)
 {
        unsigned long flags;
        struct netconsole_target *nt;
-       struct net_device *dev = ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
        bool stopped = false;
 
        if (!(event == NETDEV_CHANGENAME || event == NETDEV_UNREGISTER ||