summaryrefslogtreecommitdiffstats
path: root/target/linux/amazon/files
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-20 18:44:24 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-20 18:44:24 +0000
commit1932ef3fc46a90b00beec60bb9b746c87dce30b4 (patch)
treeba6451470376957571ec07746399f74e50977189 /target/linux/amazon/files
parenta4655acf980b230e72a85212d3ddb8b48c0ef9be (diff)
[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/Kconfig4
-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 179e35efd..63055fc2a 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 0229f53f5..70ba1496a 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;
}