diff options
Diffstat (limited to 'net/phonet/pn_dev.c')
-rw-r--r-- | net/phonet/pn_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 45a7df6575de..56a6146ac94b 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c | |||
@@ -292,9 +292,9 @@ static void phonet_route_autodel(struct net_device *dev) | |||
292 | 292 | ||
293 | /* notify Phonet of device events */ | 293 | /* notify Phonet of device events */ |
294 | static int phonet_device_notify(struct notifier_block *me, unsigned long what, | 294 | static int phonet_device_notify(struct notifier_block *me, unsigned long what, |
295 | void *arg) | 295 | void *ptr) |
296 | { | 296 | { |
297 | struct net_device *dev = arg; | 297 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); |
298 | 298 | ||
299 | switch (what) { | 299 | switch (what) { |
300 | case NETDEV_REGISTER: | 300 | case NETDEV_REGISTER: |