2002-09-30 05:32:29

by Jeff Garzik

[permalink] [raw]
Subject: Re: [Orinoco-devel] Re: Orinoco driver update

David,

Linus applied 0.13a and that fixes things, thanks.

Two quick comments:
* you need pci_set_drvdata(pdev,NULL) after pci_disable_disable in your
pci_driver::remove hook
* I think it would look better to remove the struct pci_driver ->suspend
and ->resume hook references, if they are NULL (0)...



2002-09-30 06:17:16

by David Gibson

[permalink] [raw]
Subject: Re: [Orinoco-devel] Re: Orinoco driver update

On Mon, Sep 30, 2002 at 01:37:18AM -0400, Jeff Garzik wrote:
> David,
>
> Linus applied 0.13a and that fixes things, thanks.
>
> Two quick comments:
> * you need pci_set_drvdata(pdev,NULL) after pci_disable_disable in your
> pci_driver::remove hook

Ok, I've added that before kfree()ing the net_device structure in both
orinoco_pci.c and orinoco_plx.c

> * I think it would look better to remove the struct pci_driver ->suspend
> and ->resume hook references, if they are NULL (0)...

Hmm... I'd kind of prefer to leave them there, to remind me that the
suspend/resume hooks need to be implemented.

--
David Gibson | For every complex problem there is a
[email protected] | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson