ar71xx: fix kernel Oops in at803x_link_change_notify
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 7 Jul 2015 21:52:29 +0000 (21:52 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 7 Jul 2015 21:52:29 +0000 (21:52 +0000)
commit774d8bb150f4dda50bd083474c05ac49952a5c8e
tree691fc797cd769e4c9d531d0995f3945df793603c
parent94606dcbe82b9f39c8e6a1544afa607f8568a87c
ar71xx: fix kernel Oops in at803x_link_change_notify

r45954 ("ar71xx: fix 100/10mbps ethernet link issues on mynet range
extender") introduced a pdata based modification of the tx_clk_dly. But it
was not checked if pdata actually existed. This caused a page fault on all
devices which didn't have at803x_platform_data specified for an at803x
based device.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Backport of r46200

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46252 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch