aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/net/lcs.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c
index f1dfc8d72d7a..b08292072ad1 100644
--- a/drivers/s390/net/lcs.c
+++ b/drivers/s390/net/lcs.c
@@ -2432,17 +2432,15 @@ static ssize_t lcs_driver_group_store(struct device_driver *ddrv,
2432} 2432}
2433static DRIVER_ATTR(group, 0200, NULL, lcs_driver_group_store); 2433static DRIVER_ATTR(group, 0200, NULL, lcs_driver_group_store);
2434 2434
2435static struct attribute *lcs_group_attrs[] = { 2435static struct attribute *lcs_drv_attrs[] = {
2436 &driver_attr_group.attr, 2436 &driver_attr_group.attr,
2437 NULL, 2437 NULL,
2438}; 2438};
2439 2439static struct attribute_group lcs_drv_attr_group = {
2440static struct attribute_group lcs_group_attr_group = { 2440 .attrs = lcs_drv_attrs,
2441 .attrs = lcs_group_attrs,
2442}; 2441};
2443 2442static const struct attribute_group *lcs_drv_attr_groups[] = {
2444static const struct attribute_group *lcs_group_attr_groups[] = { 2443 &lcs_drv_attr_group,
2445 &lcs_group_attr_group,
2446 NULL, 2444 NULL,
2447}; 2445};
2448 2446
@@ -2466,7 +2464,7 @@ __init lcs_init_module(void)
2466 rc = ccw_driver_register(&lcs_ccw_driver); 2464 rc = ccw_driver_register(&lcs_ccw_driver);
2467 if (rc) 2465 if (rc)
2468 goto ccw_err; 2466 goto ccw_err;
2469 lcs_group_driver.driver.groups = lcs_group_attr_groups; 2467 lcs_group_driver.driver.groups = lcs_drv_attr_groups;
2470 rc = ccwgroup_driver_register(&lcs_group_driver); 2468 rc = ccwgroup_driver_register(&lcs_group_driver);
2471 if (rc) 2469 if (rc)
2472 goto ccwgroup_err; 2470 goto ccwgroup_err;
@@ -2492,8 +2490,6 @@ __exit lcs_cleanup_module(void)
2492{ 2490{
2493 pr_info("Terminating lcs module.\n"); 2491 pr_info("Terminating lcs module.\n");
2494 LCS_DBF_TEXT(0, trace, "cleanup"); 2492 LCS_DBF_TEXT(0, trace, "cleanup");
2495 driver_remove_file(&lcs_group_driver.driver,
2496 &driver_attr_group);
2497 ccwgroup_driver_unregister(&lcs_group_driver); 2493 ccwgroup_driver_unregister(&lcs_group_driver);
2498 ccw_driver_unregister(&lcs_ccw_driver); 2494 ccw_driver_unregister(&lcs_ccw_driver);
2499 root_device_unregister(lcs_root_dev); 2495 root_device_unregister(lcs_root_dev);