pcwd.c: fix oops on unload From Arkadiusz Miskiewicz This patch is from Alan Cox and fixes problems when pcwd driver is loaded while there is no pcwd hardware installed. No idea why it was not feeded to you. Problem is described here http://www.ussg.iu.edu/hypermail/linux/kernel/0308.1/0178.html and tracked down in private conversation with Cox. diff -Nru a/drivers/char/pcwd.c b/drivers/char/pcwd.c --- a/drivers/char/pcwd.c Sun Sep 29 12:29:59 2002 +++ b/drivers/char/pcwd.c Mon Aug 25 10:20:56 2003 @@ -933,8 +933,7 @@ release_region (pcwd_info.io_addr, pcwd_info.card_info->io_size); - if (pcwd_info.flags & PCWD_PCI_REG) - pci_unregister_driver (&pcwd_driver); + pci_unregister_driver (&pcwd_driver); return; }