From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: pcspkr device, pnpPNP,100 From: Benjamin Herrenschmidt To: Jon Smirl In-Reply-To: <9e4733910711111535w6ffdfa97x4bed07eb84d4ab13@mail.gmail.com> References: <9e4733910711111535w6ffdfa97x4bed07eb84d4ab13@mail.gmail.com> Content-Type: text/plain Date: Mon, 12 Nov 2007 11:03:04 +1100 Message-Id: <1194825784.18185.0.camel@pasglop> Mime-Version: 1.0 Cc: PowerPC dev list Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2007-11-11 at 18:35 -0500, Jon Smirl wrote: > Which platform does pcspkr device, pnpPNP,100 belong to, amiga? I'd > like to IFDEF add_pcspkr(void) in setup-common.c for the right > platform. #ifdef is evil. What about multiplatform kernels ? Just test for the presence of the device in the device-tree (use a platform driver maybe) Ben.