Run-time rather than compile-time check of machine type when initializing the cyberpro clocks. Necessary so the Debian folk can distribute a single binary for their supported ARM arch's. Patch originated from Vince Sanders. PATCH FOLLOWS KernelVersion: 2.4.19-rmk7 --- linux-2.4.19-rmk7/drivers/video/cyber2000fb.c Fri Mar 21 17:18:51 2003 +++ armlinux-2.4/drivers/video/cyber2000fb.c Thu Mar 20 20:57:12 2003 @@ -1836,19 +2003,19 @@ if (err) goto failed; -#if defined(CONFIG_ARCH_SHARK) || defined(CONFIG_ARCH_NETWINDER) - /* - * MCLK on the NetWinder and the Shark is fixed at 75MHz - */ - cfb->mclk_mult = 0xdb; - cfb->mclk_div = 0x54; -#else - /* - * Use MCLK from BIOS. FIXME: what about hotplug? - */ - cfb->mclk_mult = cyber2000_grphr(EXT_MCLK_MULT, cfb); - cfb->mclk_div = cyber2000_grphr(EXT_MCLK_DIV, cfb); -#endif + if (machine_is_netwinder() || machine_is_shark()) { + /* + * MCLK on the NetWinder and the Shark is fixed at 75MHz + */ + cfb->mclk_mult = 0xdb; + cfb->mclk_div = 0x54; + } else { + /* + * Use MCLK from BIOS. FIXME: what about hotplug? + */ + cfb->mclk_mult = cyber2000_grphr(EXT_MCLK_MULT, cfb); + cfb->mclk_div = cyber2000_grphr(EXT_MCLK_DIV, cfb); + } err = cyberpro_common_probe(cfb); if (err)