aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2012-05-15 12:05:01 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-05-16 08:42:49 -0400
commit330ce1b082072ab0c6cc4a9566205ead6534bd56 (patch)
tree7bdb880f6c173a64d4643bac0fba09309f125659 /drivers/s390/net
parent9814fdfbecbb030454c46ebab88f8ea9819bc143 (diff)
s390/ctc: cleanup drv attr usage
Rename attributes of the ctcm_group_driver. Also get rid of the call to driver_remove_file. Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/ctcm_main.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c
index 84777e369a29..3cd25544a27a 100644
--- a/drivers/s390/net/ctcm_main.c
+++ b/drivers/s390/net/ctcm_main.c
@@ -1786,17 +1786,15 @@ static ssize_t ctcm_driver_group_store(struct device_driver *ddrv,
1786} 1786}
1787static DRIVER_ATTR(group, 0200, NULL, ctcm_driver_group_store); 1787static DRIVER_ATTR(group, 0200, NULL, ctcm_driver_group_store);
1788 1788
1789static struct attribute *ctcm_group_attrs[] = { 1789static struct attribute *ctcm_drv_attrs[] = {
1790 &driver_attr_group.attr, 1790 &driver_attr_group.attr,
1791 NULL, 1791 NULL,
1792}; 1792};
1793 1793static struct attribute_group ctcm_drv_attr_group = {
1794static struct attribute_group ctcm_group_attr_group = { 1794 .attrs = ctcm_drv_attrs,
1795 .attrs = ctcm_group_attrs,
1796}; 1795};
1797 1796static const struct attribute_group *ctcm_drv_attr_groups[] = {
1798static const struct attribute_group *ctcm_group_attr_groups[] = { 1797 &ctcm_drv_attr_group,
1799 &ctcm_group_attr_group,
1800 NULL, 1798 NULL,
1801}; 1799};
1802 1800
@@ -1812,7 +1810,6 @@ static const struct attribute_group *ctcm_group_attr_groups[] = {
1812 */ 1810 */
1813static void __exit ctcm_exit(void) 1811static void __exit ctcm_exit(void)
1814{ 1812{
1815 driver_remove_file(&ctcm_group_driver.driver, &driver_attr_group);
1816 ccwgroup_driver_unregister(&ctcm_group_driver); 1813 ccwgroup_driver_unregister(&ctcm_group_driver);
1817 ccw_driver_unregister(&ctcm_ccw_driver); 1814 ccw_driver_unregister(&ctcm_ccw_driver);
1818 root_device_unregister(ctcm_root_dev); 1815 root_device_unregister(ctcm_root_dev);
@@ -1850,7 +1847,7 @@ static int __init ctcm_init(void)
1850 ret = ccw_driver_register(&ctcm_ccw_driver); 1847 ret = ccw_driver_register(&ctcm_ccw_driver);
1851 if (ret) 1848 if (ret)
1852 goto ccw_err; 1849 goto ccw_err;
1853 ctcm_group_driver.driver.groups = ctcm_group_attr_groups; 1850 ctcm_group_driver.driver.groups = ctcm_drv_attr_groups;
1854 ret = ccwgroup_driver_register(&ctcm_group_driver); 1851 ret = ccwgroup_driver_register(&ctcm_group_driver);
1855 if (ret) 1852 if (ret)
1856 goto ccwgroup_err; 1853 goto ccwgroup_err;