Subject: Re: CVS commit: [jmcneill-pm] src/sys/dev/pci
To: DEGROOTE Arnaud <degroote@netbsd.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: source-changes
Date: 09/04/2007 17:56:52
On Tue, 4 Sep 2007, DEGROOTE Arnaud wrote:
> Modified Files:
> 	src/sys/dev/pci [jmcneill-pm]: if_wpi.c if_wpivar.h
>
> Log Message:
> Convert wpi_power to use pci_net_generic_power.
> With this, I can use the card after resume.

You should actually nuke the wpi_power function altogether and register 
pci_net_generic_power directly via pnp_register (in wpi_attach), ie:

   /* set power handler */
   if (pnp_register(self, pci_net_generic_power) != PNP_STATUS_SUCCESS)
           aprint_error("%s: couldn't establish power handler\n",
               device_xname(self));

Cheers,
Jared