aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-02-15 22:54:35 +0000
committerLuka Perkov <luka@openwrt.org>2014-02-15 22:54:35 +0000
commitbf883b3ca2e1a46e6c66b7e24907fc5d8c0e4238 (patch)
treedef32b308e7d25164a59ebb0209736148d76ae13 /target/linux/generic
parentc3ad61d1fbd0738ff24c4a8ac491d0a3a28f9dbc (diff)
downloadupstream-bf883b3ca2e1a46e6c66b7e24907fc5d8c0e4238.tar.gz
upstream-bf883b3ca2e1a46e6c66b7e24907fc5d8c0e4238.tar.bz2
upstream-bf883b3ca2e1a46e6c66b7e24907fc5d8c0e4238.zip
kernel: rtl8306: update reset function
Signed-off-by: Antonios Vamporakis <ant@area128.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39589 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8306.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8306.c b/target/linux/generic/files/drivers/net/phy/rtl8306.c
index 78ded0ace4..513ef9e4e2 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8306.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8306.c
@@ -519,7 +519,7 @@ rtl_get_cpuport(struct switch_dev *dev, const struct switch_attr *attr, struct s
#endif
static int
-rtl_reset(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+rtl_reset(struct switch_dev *dev)
{
rtl_hw_init(dev);
return 0;
@@ -708,12 +708,6 @@ rtl_set_ports(struct switch_dev *dev, struct switch_val *val)
static struct switch_attr rtl_globals[] = {
{
.type = SWITCH_TYPE_INT,
- .name = "reset",
- .description = "Reset the switch",
- .set = rtl_reset,
- },
- {
- .type = SWITCH_TYPE_INT,
.name = "enable_vlan",
.description = "Enable VLAN mode",
.max = 1,
@@ -855,6 +849,7 @@ static const struct switch_dev_ops rtl8306_ops = {
.get_vlan_ports = rtl_get_ports,
.set_vlan_ports = rtl_set_ports,
.apply_config = rtl_hw_apply,
+ .reset_switch = rtl_reset,
};
static int