The patch titled sky2: use debugfs rename has been removed from the -mm tree. Its filename was sky2-use-debugfs-rename.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: sky2: use debugfs rename From: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx> Use debugfs rename to handle device neame changes. Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/net/sky2.c | 56 ++++++++++++++++++------------------------- 1 files changed, 24 insertions(+), 32 deletions(-) diff -puN drivers/net/sky2.c~sky2-use-debugfs-rename drivers/net/sky2.c --- a/drivers/net/sky2.c~sky2-use-debugfs-rename +++ a/drivers/net/sky2.c @@ -3712,42 +3712,34 @@ static int sky2_device_event(struct noti unsigned long event, void *ptr) { struct net_device *dev = ptr; + struct sky2_port *sky2 = netdev_priv(dev); - if (dev->open == sky2_up) { - struct sky2_port *sky2 = netdev_priv(dev); + if (dev->open != sky2_up || !sky2_debug) + return NOTIFY_DONE; - switch(event) { - case NETDEV_CHANGENAME: - if (!netif_running(dev)) - break; - /* fallthrough */ - case NETDEV_DOWN: - case NETDEV_GOING_DOWN: - if (sky2->debugfs) { - printk(KERN_DEBUG PFX "%s: remove debugfs\n", - dev->name); - debugfs_remove(sky2->debugfs); - sky2->debugfs = NULL; - } + switch(event) { + case NETDEV_CHANGENAME: + if (sky2->debugfs) { + sky2->debugfs = debugfs_rename(sky2_debug, sky2->debugfs, + sky2_debug, dev->name); + } + break; - if (event != NETDEV_CHANGENAME) - break; - /* fallthrough for changename */ - case NETDEV_UP: - if (sky2_debug) { - struct dentry *d; - d = debugfs_create_file(dev->name, S_IRUGO, - sky2_debug, dev, - &sky2_debug_fops); - if (d == NULL || IS_ERR(d)) - printk(KERN_INFO PFX - "%s: debugfs create failed\n", - dev->name); - else - sky2->debugfs = d; - } - break; + case NETDEV_GOING_DOWN: + if (sky2->debugfs) { + printk(KERN_DEBUG PFX "%s: remove debugfs\n", + dev->name); + debugfs_remove(sky2->debugfs); + sky2->debugfs = NULL; } + break; + + case NETDEV_UP: + sky2->debugfs = debugfs_create_file(dev->name, S_IRUGO, + sky2_debug, dev, + &sky2_debug_fops); + if (IS_ERR(sky2->debugfs)) + sky2->debugfs = NULL; } return NOTIFY_DONE; _ Patches currently in -mm which might be from shemminger@xxxxxxxxxxxxxxxxxxxx are pci-x-pci-express-read-control-interfaces-mthca.patch git-netdev-all.patch pci-x-pci-express-read-control-interfaces-e1000.patch sky2-use-net_device-internal-stats.patch ktime_sub_ns-analog-of-ktime_add_ns.patch export-reciprocal_value-for-modules.patch sky2-avoid-divide-in-receive-path.patch sky2-118.patch git-net.patch i386-optimize-memset-of-6-and-8-bytes.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html