diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2009-06-20 18:44:24 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2009-06-20 18:44:24 +0000 |
commit | 08fd0a2fb5c6b384c80a378b401335df4f9201ab (patch) | |
tree | ba6451470376957571ec07746399f74e50977189 /target/linux/amazon/files | |
parent | b23a24a658d077c1fa7e0a603c23534f1b3d3bf2 (diff) | |
download | upstream-08fd0a2fb5c6b384c80a378b401335df4f9201ab.tar.gz upstream-08fd0a2fb5c6b384c80a378b401335df4f9201ab.tar.bz2 upstream-08fd0a2fb5c6b384c80a378b401335df4f9201ab.zip |
[amazon] Add ADM6996 switch driver
This fixes #5314
Thanks to Michael Richter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16523 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/amazon/files')
-rw-r--r-- | target/linux/amazon/files/arch/mips/amazon/Kconfig | 4 | ||||
-rw-r--r-- | target/linux/amazon/files/drivers/net/admmod.c (renamed from target/linux/amazon/files/drivers/char/admmod.c) | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/amazon/files/arch/mips/amazon/Kconfig b/target/linux/amazon/files/arch/mips/amazon/Kconfig index 179e35efd2..63055fc2aa 100644 --- a/target/linux/amazon/files/arch/mips/amazon/Kconfig +++ b/target/linux/amazon/files/arch/mips/amazon/Kconfig @@ -26,6 +26,10 @@ config AMAZON_MTD bool "Amazon MTD map" default y +config ADM6996_SUPPORT + bool "Amazon ADM6996 Switch driver" + default y + choice prompt "Flash Size" depends on AMAZON_MTD diff --git a/target/linux/amazon/files/drivers/char/admmod.c b/target/linux/amazon/files/drivers/net/admmod.c index 0229f53f55..70ba1496a1 100644 --- a/target/linux/amazon/files/drivers/char/admmod.c +++ b/target/linux/amazon/files/drivers/net/admmod.c @@ -928,7 +928,6 @@ static int ifx_sw_init(void) int adm_open(struct inode *node, struct file *filp) { - MOD_INC_USE_COUNT; return 0; } @@ -945,7 +944,6 @@ ssize_t adm_write(struct file *filep, const char *buf, size_t count, loff_t *ppo /* close */ int adm_release(struct inode *inode, struct file *filp) { - MOD_DEC_USE_COUNT; return 0; } |