aboutsummaryrefslogtreecommitdiffstats
path: root/net/can/gw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/can/gw.c')
-rw-r--r--net/can/gw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/can/gw.c b/net/can/gw.c
index 3ee690e8c7d3..2f291f961a17 100644
--- a/net/can/gw.c
+++ b/net/can/gw.c
@@ -445,9 +445,9 @@ static inline void cgw_unregister_filter(struct cgw_job *gwj)
445} 445}
446 446
447static int cgw_notifier(struct notifier_block *nb, 447static int cgw_notifier(struct notifier_block *nb,
448 unsigned long msg, void *data) 448 unsigned long msg, void *ptr)
449{ 449{
450 struct net_device *dev = (struct net_device *)data; 450 struct net_device *dev = netdev_notifier_info_to_dev(ptr);
451 451
452 if (!net_eq(dev_net(dev), &init_net)) 452 if (!net_eq(dev_net(dev), &init_net))
453 return NOTIFY_DONE; 453 return NOTIFY_DONE;