diff options
author | John Crispin <john@openwrt.org> | 2014-10-29 18:51:06 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-10-29 18:51:06 +0000 |
commit | ab5d70e046ffccaf8547576c3a9910af0a0ba9fb (patch) | |
tree | 34ae150a09ca31a792149092bc4dfdba2d98fca1 /target/linux/generic/files | |
parent | c0bf47232a91eead7446b722ce2b712658b8303a (diff) | |
download | upstream-ab5d70e046ffccaf8547576c3a9910af0a0ba9fb.tar.gz upstream-ab5d70e046ffccaf8547576c3a9910af0a0ba9fb.tar.bz2 upstream-ab5d70e046ffccaf8547576c3a9910af0a0ba9fb.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>
SVN-Revision: 43106
Diffstat (limited to 'target/linux/generic/files')
-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); |