leds.c 591 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * linux/arch/arm/mach-pxa/leds.c
  3. *
  4. * xscale LEDs dispatcher
  5. *
  6. * Copyright (C) 2001 Nicolas Pitre
  7. *
  8. * Copyright (c) 2001 Jeff Sutherland, Accelent Systems Inc.
  9. */
  10. #include <linux/compiler.h>
  11. #include <linux/init.h>
  12. #include <asm/leds.h>
  13. #include <asm/mach-types.h>
  14. #include "leds.h"
  15. static int __init
  16. pxa_leds_init(void)
  17. {
  18. if (machine_is_lubbock())
  19. leds_event = lubbock_leds_event;
  20. if (machine_is_mainstone())
  21. leds_event = mainstone_leds_event;
  22. if (machine_is_pxa_idp())
  23. leds_event = idp_leds_event;
  24. leds_event(led_start);
  25. return 0;
  26. }
  27. core_initcall(pxa_leds_init);