Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 13 Dec 2002 06:04:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 13 Dec 2002 06:04:36 -0500 Received: from modemcable092.130-200-24.mtl.mc.videotron.ca ([24.200.130.92]:41460 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Fri, 13 Dec 2002 06:04:35 -0500 Date: Fri, 13 Dec 2002 06:15:11 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Linux Kernel cc: Adam Belay Subject: Re: [PATCH][2.5][CFT] ad1848 PnP updates + fixes In-Reply-To: Message-ID: References: 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: 892 Lines: 33 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/