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)
commit977bceeb9c0a71feae4545c61bea2c171965bfba
treebb5bf724f4f5ee861308f5e70e8e3b297932623e
parent13ee584da6d2b248fca04cfb8c02aead4016d1a8
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