From: Thierry Reding Date: Thu, 24 Oct 2013 12:59:08 +0000 (+0200) Subject: Merge remote-tracking branch 'driver-core/driver-core-next' X-Git-Tag: next-20131024~33 X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=b4cd00c6ba59009062938d8b432aebb18fd07d8a Merge remote-tracking branch 'driver-core/driver-core-next' Conflicts: include/linux/netdevice.h --- b4cd00c6ba59009062938d8b432aebb18fd07d8a diff --cc drivers/mtd/nand/atmel_nand.c index ef9c9f547c01,bd1ce7d13702..2dbd9133c395 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@@ -1511,8 -1540,15 +1511,8 @@@ static int atmel_of_init_port(struct at return 0; } -#else -static int atmel_of_init_port(struct atmel_nand_host *host, - struct device_node *np) -{ - return -EINVAL; -} -#endif - static int __init atmel_hw_nand_init_params(struct platform_device *pdev, + static int atmel_hw_nand_init_params(struct platform_device *pdev, struct atmel_nand_host *host) { struct mtd_info *mtd = &host->mtd; diff --cc drivers/net/bonding/bond_sysfs.c index 47749c970a01,ec9b6460a38d..b9d8f1175ff5 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c @@@ -165,9 -157,43 +157,8 @@@ static const struct class_attribute cla }, .show = bonding_show_bonds, .store = bonding_store_bonds, - .namespace = bonding_namespace, }; -int bond_create_slave_symlinks(struct net_device *master, - struct net_device *slave) -{ - char linkname[IFNAMSIZ+7]; - int ret = 0; - - /* first, create a link from the slave back to the master */ - ret = sysfs_create_link(&(slave->dev.kobj), &(master->dev.kobj), - "master"); - if (ret) - return ret; - /* next, create a link from the master to the slave */ - sprintf(linkname, "slave_%s", slave->name); - ret = sysfs_create_link(&(master->dev.kobj), &(slave->dev.kobj), - linkname); - - /* free the master link created earlier in case of error */ - if (ret) - sysfs_remove_link(&(slave->dev.kobj), "master"); - - return ret; - -} - -void bond_destroy_slave_symlinks(struct net_device *master, - struct net_device *slave) -{ - char linkname[IFNAMSIZ+7]; - - sysfs_remove_link(&(slave->dev.kobj), "master"); - sprintf(linkname, "slave_%s", slave->name); - sysfs_remove_link(&(master->dev.kobj), linkname); -} - - /* * Show the slaves in the current bond. */ diff --cc include/linux/netdevice.h index c893f2295f49,42421ed49a47..809afccf7a60 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@@ -2894,8 -2873,20 +2894,20 @@@ int __init dev_proc_init(void) #define dev_proc_init() 0 #endif - int netdev_class_create_file(struct class_attribute *class_attr); - void netdev_class_remove_file(struct class_attribute *class_attr); -extern int netdev_class_create_file_ns(struct class_attribute *class_attr, - const void *ns); -extern void netdev_class_remove_file_ns(struct class_attribute *class_attr, - const void *ns); ++int netdev_class_create_file_ns(struct class_attribute *class_attr, ++ const void *ns); ++void netdev_class_remove_file_ns(struct class_attribute *class_attr, ++ const void *ns); + + static inline int netdev_class_create_file(struct class_attribute *class_attr) + { + return netdev_class_create_file_ns(class_attr, NULL); + } + + static inline void netdev_class_remove_file(struct class_attribute *class_attr) + { + netdev_class_remove_file_ns(class_attr, NULL); + } extern struct kobj_ns_type_operations net_ns_type_operations;