From: blogic Date: Wed, 29 Oct 2014 19:24:16 +0000 (+0000) Subject: swconfig: last vs tail X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=9a54ffdcb1fa01aaf03cd992fcd1be18ed2d98f4;p=openwrt.git swconfig: last vs tail sorry ..... Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43107 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c index de1dde22cf..4f2df4cf8a 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_last(&dev->dev_list, &swdevs); + list_add_tail(&dev->dev_list, &swdevs); swconfig_unlock(); err = swconfig_create_led_trigger(dev);