diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-04-17 22:16:28 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-04-17 22:16:28 +0000 |
commit | a44434cb9fd892d86379e09db413831c7ded1e61 (patch) | |
tree | 379d5e5f8955ebeffb405f65a12836ecb01666a9 /target/linux/rb1xx-2.6/files/drivers/char/adm5120_gpio.c | |
parent | d22c77b8089747f892ce5b9baee55b3cb438ba26 (diff) | |
download | upstream-a44434cb9fd892d86379e09db413831c7ded1e61.tar.gz upstream-a44434cb9fd892d86379e09db413831c7ded1e61.tar.bz2 upstream-a44434cb9fd892d86379e09db413831c7ded1e61.zip |
Remove this target since rb-2.6 will build both rb532 and adm5120 later on
SVN-Revision: 6992
Diffstat (limited to 'target/linux/rb1xx-2.6/files/drivers/char/adm5120_gpio.c')
-rw-r--r-- | target/linux/rb1xx-2.6/files/drivers/char/adm5120_gpio.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/target/linux/rb1xx-2.6/files/drivers/char/adm5120_gpio.c b/target/linux/rb1xx-2.6/files/drivers/char/adm5120_gpio.c deleted file mode 100644 index 6fccfb029e..0000000000 --- a/target/linux/rb1xx-2.6/files/drivers/char/adm5120_gpio.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * ADM5120 LED (GPIO) driver - * - * Copyright (C) Jeroen Vreeken (pe1rxq@amsat.org), 2005 - */ - -#include <linux/autoconf.h> -#include <linux/module.h> -#include <linux/kernel.h> -#include <linux/miscdevice.h> -#include <linux/fs.h> - -#define LED_MINOR 151 -#define GPIO_IO ((unsigned long *)0xb20000b8) - -static ssize_t adm5120_led_write(struct file *file, const char __user *data, - size_t len, loff_t *ppos) -{ - unsigned char val; - - if (!len || get_user(val, data)) - return -EFAULT; - *GPIO_IO=(*GPIO_IO & 0x00ffffff) | (val<<24); - return 1; -} - -static struct file_operations adm5120_led_fops = { - .owner = THIS_MODULE, - .write = adm5120_led_write, -}; - -static struct miscdevice adm5120_led_device = { - LED_MINOR, - "led", - &adm5120_led_fops, -}; - -static int __init adm5120_led_init(void) -{ - printk(KERN_INFO "ADM5120 LED & GPIO driver\n"); - if (misc_register(&adm5120_led_device)) { - printk(KERN_WARNING "Couldn't register device %d\n", LED_MINOR); - return -EBUSY; - } - return 0; -} - -static void __exit adm5120_led_exit(void) -{ - misc_deregister(&adm5120_led_device); -} - -module_init(adm5120_led_init); -module_exit(adm5120_led_exit); - -MODULE_DESCRIPTION("ADM5120 LED and GPIO driver"); -MODULE_AUTHOR("Jeroen Vreeken"); -MODULE_LICENSE("GPL"); |