Merge tag 'nfs-for-3.14-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[cascardo/linux.git] / net / tipc / core.c
index c6d3f75..f9e88d8 100644 (file)
@@ -82,8 +82,7 @@ struct sk_buff *tipc_buf_acquire(u32 size)
 static void tipc_core_stop_net(void)
 {
        tipc_net_stop();
-       tipc_eth_media_stop();
-       tipc_ib_media_stop();
+       tipc_bearer_cleanup();
 }
 
 /**
@@ -94,10 +93,7 @@ int tipc_core_start_net(unsigned long addr)
        int res;
 
        tipc_net_start(addr);
-       res = tipc_eth_media_start();
-       if (res < 0)
-               goto err;
-       res = tipc_ib_media_start();
+       res = tipc_bearer_setup();
        if (res < 0)
                goto err;
        return res;