]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wan/lapbether.c
net: davinci_mdio: gaurd the DT code with IS_ENABLED(CONFIG_OF)
[~andy/linux] / drivers / net / wan / lapbether.c
index a73b49eb87e37a150c6096299a08460ad921d32d..a33a46fa88dd0216871502622a0f06b976ac94d5 100644 (file)
@@ -370,7 +370,7 @@ static int lapbeth_device_event(struct notifier_block *this,
                                unsigned long event, void *ptr)
 {
        struct lapbethdev *lapbeth;
-       struct net_device *dev = ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
 
        if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;