mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4.22-rc, IDE: cannot unload piix module
@ 2003-08-14 14:33 Urs Thuermann
  2003-08-14 15:09 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Urs Thuermann @ 2003-08-14 14:33 UTC (permalink / raw)
  To: linux-kernel

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
unloaded.

I think this is because of the following code in
linux/drivers/ide/pci/piix.c:

    /**
     *	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)
                    BUG();
            d->init_setup(dev, d);
            MOD_INC_USE_COUNT;
            return 0;
    }
    

But there is no MOD_DEC_USE_COUNT anywhere.  Is that intended?


urs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-14 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14 14:33 2.4.22-rc, IDE: cannot unload piix module Urs Thuermann
2003-08-14 15:09 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®