[PATCH 16/17] mach-sa1100: retire custom LED code
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Jul 11 17:09:50 EDT 2011
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;
Yes, that'll do, thanks.
More information about the linux-arm-kernel
mailing list