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)
commitc130a3feac577eb07943d2c3e5428ea5557aabcc
tree6c80aa9e319d532d450232046947cd141f78dc7d
parent4be8c22e7440e6b2d4d2673009f56ad30b401a16
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