net: atlantic: make hw_get_regs optional
This patch fixes potential crash in case if hw_get_regs is NULL. Signed-off-by: NMark Starovoytov <mstarovoitov@marvell.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录