pcspkr device, pnpPNP,100

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Nov 12 11:03:04 EST 2007


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.





More information about the Linuxppc-dev mailing list