]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] airo: Make /sys/bus/pci/drivers/airo/{,un}bind work
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 16 Mar 2007 11:44:40 +0000 (12:44 +0100)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 15:01:00 +0000 (11:01 -0400)
commitaf5b5c9aa92ced95fca509e775aec90933f8959d
treeb053d2f524a0b3b437f89d6f38e1aecb6e3bbb7f
parentfd48f8d3a3e147e666d838194d5f9de64403ecb1
[PATCH] airo: Make /sys/bus/pci/drivers/airo/{,un}bind work

The way airo.c keeps track of all its devices is complicated and buggy
as well (del_airo_dev forgets to free the memory add_airo_dev allocates).
It's cleaner to use the standard list primitives.
While we're at it, it's not necessary to put PCI cards in the list, because
the kernel already keeps track of them. We can take advantage of it and
use the .remove callback as it was meant to be.
This makes /sys/bus/pci/drivers/airo/{,un}bind work.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c