]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wan/dlci.c
Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / drivers / net / wan / dlci.c
index 6a8a382c5f4c071f070c88f618296b1b9d6624df..0d1c7592efa08eac1dc7d02340e9f13db0895d2b 100644 (file)
@@ -493,7 +493,7 @@ static void dlci_setup(struct net_device *dev)
 static int dlci_dev_event(struct notifier_block *unused,
                          unsigned long event, void *ptr)
 {
-       struct net_device *dev = (struct net_device *) ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
 
        if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;