diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2009-06-20 18:44:24 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2009-06-20 18:44:24 +0000 |
commit | 6e42b25c88119d50df668e12f0e62579c622d0ca (patch) | |
tree | ac4463b57e67b104f835b41abb3463d622ce825c /target/linux/amazon/files | |
parent | 5de80e6e286d62cde0e7a264e41741aa049b387f (diff) | |
download | mtk-20170518-6e42b25c88119d50df668e12f0e62579c622d0ca.zip mtk-20170518-6e42b25c88119d50df668e12f0e62579c622d0ca.tar.gz mtk-20170518-6e42b25c88119d50df668e12f0e62579c622d0ca.tar.bz2 |
Add ADM6996 switch driver
This fixes #5314
Thanks to Michael Richter
SVN-Revision: 16523
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 179e35e..63055fc 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 0229f53..70ba149 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; } |