mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
kernel: rtl8306: update reset function
Signed-off-by: Antonios Vamporakis <ant@area128.com> SVN-Revision: 39589
This commit is contained in:
parent
6e0fd6d518
commit
cde033f918
@ -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;
|
||||
@ -706,12 +706,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",
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user