]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/fcoe/fcoe_transport.c
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[~andy/linux] / drivers / scsi / fcoe / fcoe_transport.c
index f3a5a53e863133203044814f892286704cf70630..01adbe0ec53b89af776957d1b4cc58038aae818a 100644 (file)
@@ -704,7 +704,7 @@ static struct net_device *fcoe_if_to_netdev(const char *buffer)
 static int libfcoe_device_notification(struct notifier_block *notifier,
                                    ulong event, void *ptr)
 {
-       struct net_device *netdev = ptr;
+       struct net_device *netdev = netdev_notifier_info_to_dev(ptr);
 
        switch (event) {
        case NETDEV_UNREGISTER: