AR6000: move low-level cleanup from ar6000_destroy to ar6000_closebefore-nelson-commits
commit9c4451ff31b937a478f3d3eabef30b71cbe12b12
authorWerner Almesberger <werner@openmoko.org>
Thu, 2 Apr 2009 11:12:12 +0000 (2 08:12 -0300)
committerWerner Almesberger <werner@openmoko.org>
Thu, 2 Apr 2009 11:12:12 +0000 (2 08:12 -0300)
tree2409cc4001a17469eece6dad3d063646d7d94567
parent60c66130a4467ca2a2994a6e3d7d5ac63839eefb
AR6000: move low-level cleanup from ar6000_destroy to ar6000_close

A network device is supposed to disable its internals in the "close"
function. Doing so affords us protection against various races,
including the ioctl vs. rfkill conflict reported by Michael.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
Reported-by: Michael Trimarch <michael@panicking.kicks-ass.org>
drivers/ar6000/ar6000/ar6000_drv.c