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)
commit37e86c353c8f0a9c1f49f2a925e4793c5b824029
treebb5bf724f4f5ee861308f5e70e8e3b297932623e
parentc0a72756c4cdc8d79c49a398bcb4ed98127a8023
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36229 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/rtl8367b.c