diff options
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 | ||||
-rw-r--r-- | drivers/scsi/fcoe/fcoe_transport.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 292b24f9bf93..ee721b6cbcdf 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -1975,7 +1975,7 @@ static int fcoe_device_notification(struct notifier_block *notifier, | |||
1975 | { | 1975 | { |
1976 | struct fcoe_ctlr_device *cdev; | 1976 | struct fcoe_ctlr_device *cdev; |
1977 | struct fc_lport *lport = NULL; | 1977 | struct fc_lport *lport = NULL; |
1978 | struct net_device *netdev = ptr; | 1978 | struct net_device *netdev = netdev_notifier_info_to_dev(ptr); |
1979 | struct fcoe_ctlr *ctlr; | 1979 | struct fcoe_ctlr *ctlr; |
1980 | struct fcoe_interface *fcoe; | 1980 | struct fcoe_interface *fcoe; |
1981 | struct fcoe_port *port; | 1981 | struct fcoe_port *port; |
diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index f3a5a53e8631..01adbe0ec53b 100644 --- a/drivers/scsi/fcoe/fcoe_transport.c +++ b/drivers/scsi/fcoe/fcoe_transport.c | |||
@@ -704,7 +704,7 @@ static struct net_device *fcoe_if_to_netdev(const char *buffer) | |||
704 | static int libfcoe_device_notification(struct notifier_block *notifier, | 704 | static int libfcoe_device_notification(struct notifier_block *notifier, |
705 | ulong event, void *ptr) | 705 | ulong event, void *ptr) |
706 | { | 706 | { |
707 | struct net_device *netdev = ptr; | 707 | struct net_device *netdev = netdev_notifier_info_to_dev(ptr); |
708 | 708 | ||
709 | switch (event) { | 709 | switch (event) { |
710 | case NETDEV_UNREGISTER: | 710 | case NETDEV_UNREGISTER: |