]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/netprio_cgroup.c
net: pass info struct via netdevice notifier
[karo-tx-linux.git] / net / core / netprio_cgroup.c
index 0777d0aa18c3814a42a338a25d3508d9654c5797..e533259dce3ccad8a04cc095fa0056b8693fde70 100644 (file)
@@ -261,7 +261,7 @@ struct cgroup_subsys net_prio_subsys = {
 static int netprio_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 netprio_map *old;
 
        /*