lkml.org 
[lkml]   [2002]   [Dec]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 13 Dec 2002 06:15:11 -0500 (EST)
FromZwane Mwaikambo <>
SubjectRe: [PATCH][2.5][CFT] ad1848 PnP updates + fixes
Hi Adam,
	I had the following hunk from the previous patch to this file, do
we really want to disable that device here?

On Thu, 12 Dec 2002, Zwane Mwaikambo wrote:

>  #ifdef CONFIG_PNP
> -	if(ad1848_dev){
> -		if(audio_activated)
> -			pnp_disable_dev(ad1848_dev);
> -		put_device(&ad1848_dev->dev);
> +{
> +	ad1848_info *p;
> +
> +	if (audio_activated == 0)
> +		return;
> +
> +	while (--nr_ad1848_devs >= 0) {
> +		p = &adev_info[nr_ad1848_devs];
> +		pnp_disable_dev(p->pnp_dev);	/* XXX Should this be done here? */
> +		put_device(&p->pnp_dev->dev);
>  	}
> +	pnp_unregister_driver(&ad1848_driver);
> +}
>  #endif

-- 
function.linuxpower.ca
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:31    [from the cache]
©2003-2008