aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/eth_media.c4
-rw-r--r--net/tipc/ib_media.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c
index 120a676a3360..fc60bea63169 100644
--- a/net/tipc/eth_media.c
+++ b/net/tipc/eth_media.c
@@ -251,9 +251,9 @@ static void disable_bearer(struct tipc_bearer *tb_ptr)
251 * specified device. 251 * specified device.
252 */ 252 */
253static int recv_notification(struct notifier_block *nb, unsigned long evt, 253static int recv_notification(struct notifier_block *nb, unsigned long evt,
254 void *dv) 254 void *ptr)
255{ 255{
256 struct net_device *dev = (struct net_device *)dv; 256 struct net_device *dev = netdev_notifier_info_to_dev(ptr);
257 struct eth_bearer *eb_ptr = &eth_bearers[0]; 257 struct eth_bearer *eb_ptr = &eth_bearers[0];
258 struct eth_bearer *stop = &eth_bearers[MAX_ETH_BEARERS]; 258 struct eth_bearer *stop = &eth_bearers[MAX_ETH_BEARERS];
259 259
diff --git a/net/tipc/ib_media.c b/net/tipc/ib_media.c
index 2a2864c25e15..baa9df4327d9 100644
--- a/net/tipc/ib_media.c
+++ b/net/tipc/ib_media.c
@@ -244,9 +244,9 @@ static void disable_bearer(struct tipc_bearer *tb_ptr)
244 * specified device. 244 * specified device.
245 */ 245 */
246static int recv_notification(struct notifier_block *nb, unsigned long evt, 246static int recv_notification(struct notifier_block *nb, unsigned long evt,
247 void *dv) 247 void *ptr)
248{ 248{
249 struct net_device *dev = (struct net_device *)dv; 249 struct net_device *dev = netdev_notifier_info_to_dev(ptr);
250 struct ib_bearer *ib_ptr = &ib_bearers[0]; 250 struct ib_bearer *ib_ptr = &ib_bearers[0];
251 struct ib_bearer *stop = &ib_bearers[MAX_IB_BEARERS]; 251 struct ib_bearer *stop = &ib_bearers[MAX_IB_BEARERS];
252 252