| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
| Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 2 |  * linux/arch/arm/mach-imx/leds.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 |  * | 
 | 4 |  * Copyright (C) 2004 Sascha Hauer <sascha@saschahauer.de> | 
 | 5 |  * | 
 | 6 |  * | 
 | 7 |  * This program is free software; you can redistribute it and/or modify | 
 | 8 |  * it under the terms of the GNU General Public License version 2 as | 
 | 9 |  * published by the Free Software Foundation. | 
 | 10 |  * | 
 | 11 |  */ | 
 | 12 |  | 
 | 13 | #include <linux/kernel.h> | 
 | 14 | #include <linux/init.h> | 
 | 15 |  | 
 | 16 | #include <asm/leds.h> | 
 | 17 | #include <asm/mach-types.h> | 
 | 18 |  | 
 | 19 | #include "leds.h" | 
 | 20 |  | 
 | 21 | static int __init | 
 | 22 | leds_init(void) | 
 | 23 | { | 
 | 24 | 	if (machine_is_mx1ads()) { | 
 | 25 | 		leds_event = mx1ads_leds_event; | 
 | 26 | 	} | 
 | 27 |  | 
 | 28 | 	return 0; | 
 | 29 | } | 
 | 30 |  | 
 | 31 | __initcall(leds_init); |