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: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
29c1035fee
Коммит
a4d98fac51
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче