generic: mvswitch: add detach callback
authorGabor Juhos <juhosg@openwrt.org>
Thu, 7 Feb 2013 15:18:34 +0000 (15:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 7 Feb 2013 15:18:34 +0000 (15:18 +0000)
commitf6d69af94ac49dba2f47267a7352ca189f21f34d
treee652b02c08a6b8f3192a31ad77b102e3cde2ad5b
parent8fdac0b34d2d032e9a307cf6fa7ec88580d29ac8
generic: mvswitch: add detach callback

Use the detach callback to disable packet mangling
to avoid possible NULL pointer dereference.

Compile tested only.

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