Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]
  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 
 13 #include <asm/leds.h>
 14 #include <asm/mach-types.h>
 15 
 16 #include "leds.h"
 17 
 18 static int __init
 19 pxa_leds_init(void)
 20 {
 21         if (machine_is_lubbock())
 22                 leds_event = lubbock_leds_event;
 23         if (machine_is_mainstone())
 24                 leds_event = mainstone_leds_event;
 25         if (machine_is_pxa_idp())
 26                 leds_event = idp_leds_event;
 27 
 28         leds_event(led_start);
 29         return 0;
 30 }
 31 
 32 core_initcall(pxa_leds_init);
 33 
  This page was automatically generated by the LXR engine.