net: pass info struct via netdevice notifier
[deliverable/linux.git] / drivers / net / macvlan.c
index 1c502bb0c916ff549ab10400af5d24b7f61c4866..edfddc5f61b46a06dd0c333aed321e42e3c150cb 100644 (file)
@@ -921,7 +921,7 @@ static struct rtnl_link_ops macvlan_link_ops = {
 static int macvlan_device_event(struct notifier_block *unused,
                                unsigned long event, void *ptr)
 {
-       struct net_device *dev = ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
        struct macvlan_dev *vlan, *next;
        struct macvlan_port *port;
        LIST_HEAD(list_kill);
This page took 0.032366 seconds and 5 git commands to generate.