Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 19 Mar 2003 07:00:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 19 Mar 2003 07:00:26 -0500 Received: from phoenix.mvhi.com ([195.224.96.167]:15111 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Wed, 19 Mar 2003 07:00:25 -0500 Date: Wed, 19 Mar 2003 12:11:21 +0000 From: Christoph Hellwig To: John Kim Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2.5.65] pnp api changes to sound/isa/sb/es968.c Message-ID: <20030319121121.A21042@infradead.org> Mail-Followup-To: Christoph Hellwig , John Kim , torvalds@transmeta.com, linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from john@larvalstage.com on Wed, Mar 19, 2003 at 07:03:57AM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 38 On Wed, Mar 19, 2003 at 07:03:57AM -0500, John Kim wrote: > struct snd_card_es968 { > -#ifdef __ISAPNP__ > - struct isapnp_dev *dev; > -#endif /* __ISAPNP__ */ > + struct pnp_dev *dev; > }; What about completly removing struct snd_card_es968 and using pnp_dev directtly instead? sound/* is full of this overdesign and it's time to get it follow kernel style a bit more.. > static int __init alsa_card_es968_init(void) > { > int cards = 0; > > -#ifdef __ISAPNP__ > - cards += isapnp_probe_cards(snd_es968_pnpids, snd_es968_isapnp_detect); > -#else > - snd_printk("you have to enable ISA PnP support.\n"); > -#endif > + cards += pnp_register_card_driver(&es968_pnpc_driver); > #ifdef MODULE > if (!cards) > - snd_printk("no ES968 based soundcards found\n"); > + printk(KERN_ERR "no ES968 based soundcards found\n"); > #endif > return cards ? 0 : -ENODEV; > } That printk is useless, you get a useful message from modprobe on an ENODEV return anyway. - 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/