generic: mvswitch: add detach callback
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Feb 2013 15:18:34 +0000 (15:18 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Feb 2013 15:18:34 +0000 (15:18 +0000)
commit852ed7a234bb31ceaf629698c1f7f1378f38a67a
treee652b02c08a6b8f3192a31ad77b102e3cde2ad5b
parent4a7ecbb10cd0559f540111e91c15710d767e2321
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35512 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/mvswitch.c