Subject: Re: test pmfified ex(4) please - patch attached
To: None <current-users@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: current-users
Date: 12/20/2007 16:20:24
On Thu, Dec 20, 2007 at 03:55:23PM +0100, S.P.Zeidler wrote:
> @@ -474,6 +479,11 @@
>  	if (sc->sc_powerhook == NULL)
>  		aprint_error("%s: WARNING: unable to establish power hook\n",
>  			sc->sc_dev.dv_xname);
> +#endif
> +	if (!pmf_device_register(&(sc->sc_dev), ex_suspend, ex_resume))
						NULL, NULL

The powerhandler does nothing, the network class handler doesn't already
do.

> +		aprint_error_dev(&(sc->sc_dev), "couldn't establish power handler\n");
> +	else
> +		pmf_class_network_register(&(sc->sc_dev), &sc->sc_ethercom.ec_if);
>  
>  	/* The attach is successful. */
>  	sc->ex_flags |= EX_FLAGS_ATTACHED;

Joerg