diff options
author | Jonas Gorski <jogo@openwrt.org> | 2011-07-27 18:00:18 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2011-07-27 18:00:18 +0000 |
commit | eaa935658b7ec77bfd8b99b557ad196425b620f4 (patch) | |
tree | 85ae0f6e1bff3c06ac7b12de828d5a6a86194931 /target/linux/generic/files/drivers/net/phy/rtl8366rb.c | |
parent | 8ff7756e829dde4fcf69eeb9cca673cc7c7bd945 (diff) | |
download | mtk-20170518-eaa935658b7ec77bfd8b99b557ad196425b620f4.zip mtk-20170518-eaa935658b7ec77bfd8b99b557ad196425b620f4.tar.gz mtk-20170518-eaa935658b7ec77bfd8b99b557ad196425b620f4.tar.bz2 |
swconfig: Add generic switch identifiers
Also make switches available under a generic name "switch<num>" for device
name agnostic access. The old device name is used as an alias for backward
compatibility.
SVN-Revision: 27800
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366rb.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366rb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c index c953681..b337408 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c @@ -1116,7 +1116,7 @@ static int rtl8366rb_switch_init(struct rtl8366_smi *smi) dev->ports = RTL8366RB_NUM_PORTS; dev->vlans = RTL8366RB_NUM_VIDS; dev->ops = &rtl8366_ops; - dev->devname = dev_name(smi->parent); + dev->alias = dev_name(smi->parent); err = register_switch(dev, NULL); if (err) |