slip: Clean up create and destroy
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Sep 2009 20:13:17 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:17 +0000 (13:13 -0700)
commit5342b77c4123ba39f911d92a813295fb3bb21f69
tree9a1e0019453b81ca4bb9e729764887a27e175688
parent46fb782522092f772c6ce2b129f201ca6e1e15a2
slip: Clean up create and destroy

The network layer now has a destructor we can hook to clean up the slip
devices array. That needs us to initiate unregister events in the right
places which with the current tty layer we can do, and with network
refcounting is safe to do.

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/slip.c