generic: rtl8367b: fix rtl8367b_extif_init_of
authorGabor Juhos <juhosg@openwrt.org>
Sat, 6 Apr 2013 17:03:09 +0000 (17:03 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 6 Apr 2013 17:03:09 +0000 (17:03 +0000)
commitf5d8d80ca9423ff0780bc0dca91bb2eda39e50a1
tree5df06f0193f0d256ef6f0aef2ac475c91830a1ca
parent32d3b456f030a2ae55f2e60eb86f456984c7ce93
generic: rtl8367b: fix rtl8367b_extif_init_of

* disable external interface if its property is not present
* show an error message if the extif property is not valid
* use proper error values intead of -1
* fix memory leak
* wrap long lines

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36229
target/linux/generic/files/drivers/net/phy/rtl8367b.c