ar8216: add adjust_link checking
authorPawel Dembicki <paweldembicki@gmail.com>
Sat, 17 Nov 2018 08:07:47 +0000 (08:07 +0000)
committerJohn Crispin <john@phrozen.org>
Mon, 26 Nov 2018 11:16:52 +0000 (12:16 +0100)
commite61812fd346c43edbb16e87e61ff1a2110ca8eeb
tree24f2ffb25eba30a12f86b856deaf346599b0457f
parented25e3ac02d9193d7cba89563a88b8bccc4b4513
ar8216: add adjust_link checking

Driver crash when 'phydev->adjust_link' isn't provided.

This patch check if 'phydev->adjust_link' exist before
call the method.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
target/linux/generic/files/drivers/net/phy/ar8216.c