提交 a4d98fac 编写于 作者: A Andrey Shvetsov 提交者: Greg Kroah-Hartman

staging: most: check availability of the callback request_netinfo

Since not all HDMs implement the callback request_netinfo, this patch
adds checking of its availability.
Signed-off-by: NAndrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: NChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 29c1035f
......@@ -203,7 +203,8 @@ static int most_nd_open(struct net_device *dev)
else
netif_dormant_on(dev);
netif_wake_queue(dev);
nd->iface->request_netinfo(nd->iface, nd->tx.ch_id);
if (nd->iface->request_netinfo)
nd->iface->request_netinfo(nd->iface, nd->tx.ch_id);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册