[lkml]   [2003]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject2.4.22-rc, IDE: cannot unload piix module
After loading the module piix.o for some Intel IDE chips, the usage
count is 1 even if the module isn't used, so the module cannot be

I think this is because of the following code in

* piix_init_one - called when a PIIX is found
* @dev: the piix device
* @id: the matching pci id
* Called when the PCI registration layer (or the IDE initialization)
* finds a device matching our IDE device tables.

static int __devinit piix_init_one(struct pci_dev *dev, const struct pci_device_id *id)
ide_pci_device_t *d = &piix_pci_info[id->driver_data];

if (dev->device != d->device)
d->init_setup(dev, d);
return 0;

But there is no MOD_DEC_USE_COUNT anywhere. Is that intended?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.040 / U:4.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site