Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 16 Aug 2002 23:20:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 16 Aug 2002 23:20:35 -0400 Received: from chaos.physics.uiowa.edu ([128.255.34.189]:42704 "EHLO chaos.physics.uiowa.edu") by vger.kernel.org with ESMTP id ; Fri, 16 Aug 2002 23:20:35 -0400 Date: Fri, 16 Aug 2002 22:24:32 -0500 (CDT) From: Kai Germaschewski X-X-Sender: kai@chaos.physics.uiowa.edu To: harish.vasudeva@amd.com cc: linux-kernel@vger.kernel.org Subject: Re: need help with pci_module_init In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 18 On Fri, 16 Aug 2002 harish.vasudeva@amd.com wrote: > pci_module_init() works fine only the first time i load my driver. > subsequent loads will fail with this call returning -19!! any clues? -19 is -ENODEV, i.e. pci_module_init() doesn't find any devices that match your driver. That's most likely since they're still considered owned by the previously loaded driver (your module as well), which forgot to pci_unregister_driver() at unload time. --Kai - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/