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 | c86f6a92354ee847ef8b06ce1061ff45989e9148 (patch) | |
tree | abee889c94a256789fdcbc913c8ed7b75bc3cc40 /target/linux/generic/files/drivers/net/phy/rtl8366s.c | |
parent | 667740bb3f3a221a6cc8adc9ebdd7f4ecab1c2f0 (diff) | |
download | upstream-c86f6a92354ee847ef8b06ce1061ff45989e9148.tar.gz upstream-c86f6a92354ee847ef8b06ce1061ff45989e9148.tar.bz2 upstream-c86f6a92354ee847ef8b06ce1061ff45989e9148.zip |
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.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27800 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366s.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c index 8fa1ed186a..e2d8402cf6 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c @@ -945,7 +945,7 @@ static int rtl8366s_switch_init(struct rtl8366_smi *smi) dev->ports = RTL8366S_NUM_PORTS; dev->vlans = RTL8366S_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) |