From: Russell King - ARM Linux <hidden> Date: 2011-07-11 21:09:50
On Mon, Jul 11, 2011 at 10:36:49PM +0800, Bryan Wu wrote:
Right, I got it. So if we are going to run a single binary for all the
sa1100 machines, how about we check the machine in each fs_initcall
static int __init assabet_leds_init(void)
{
? ? int i;
if (!machine_is_assabet())
return -ENODEV,
? ? for (i = 0; i < ARRAY_SIZE(assabet_leds); i++) {
? ? ? ? ? ? struct assabet_led *led;