diff options
author | John Crispin <blogic@openwrt.org> | 2014-10-29 18:51:06 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-10-29 18:51:06 +0000 |
commit | 99a6061ffe53724ad40e698ee4d640d21a73dfc7 (patch) | |
tree | bdc3e643dcb35203f0d3e35de773ac8bc5a41790 /target | |
parent | 344d6e184b41e5a165824f2c7fee2c09097e5b7e (diff) | |
download | master-187ad058-99a6061ffe53724ad40e698ee4d640d21a73dfc7.tar.gz master-187ad058-99a6061ffe53724ad40e698ee4d640d21a73dfc7.tar.bz2 master-187ad058-99a6061ffe53724ad40e698ee4d640d21a73dfc7.zip |
swconfig: "swconfig list" shows devices in reverse order
Boards that have more than one swconfig enabled switch will show the devices in
reverse order when call swconfig list. Fix this by using list_add_tail().
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43106 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c index ba9136c34f..de1dde22cf 100644 --- a/target/linux/generic/files/drivers/net/phy/swconfig.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig.c @@ -1079,7 +1079,7 @@ register_switch(struct switch_dev *dev, struct net_device *netdev) /* fill device name */ snprintf(dev->devname, IFNAMSIZ, SWCONFIG_DEVNAME, i); - list_add(&dev->dev_list, &swdevs); + list_add_last(&dev->dev_list, &swdevs); swconfig_unlock(); err = swconfig_create_led_trigger(dev); |