diff options
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index d743dcee1e77..ae1acdf21bd3 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -440,7 +440,7 @@ static int device_add_attributes(struct device *dev, | |||
440 | int i; | 440 | int i; |
441 | 441 | ||
442 | if (attrs) { | 442 | if (attrs) { |
443 | for (i = 0; attr_name(attrs[i]); i++) { | 443 | for (i = 0; attrs[i].attr.name; i++) { |
444 | error = device_create_file(dev, &attrs[i]); | 444 | error = device_create_file(dev, &attrs[i]); |
445 | if (error) | 445 | if (error) |
446 | break; | 446 | break; |
@@ -458,7 +458,7 @@ static void device_remove_attributes(struct device *dev, | |||
458 | int i; | 458 | int i; |
459 | 459 | ||
460 | if (attrs) | 460 | if (attrs) |
461 | for (i = 0; attr_name(attrs[i]); i++) | 461 | for (i = 0; attrs[i].attr.name; i++) |
462 | device_remove_file(dev, &attrs[i]); | 462 | device_remove_file(dev, &attrs[i]); |
463 | } | 463 | } |
464 | 464 | ||
@@ -469,7 +469,7 @@ static int device_add_bin_attributes(struct device *dev, | |||
469 | int i; | 469 | int i; |
470 | 470 | ||
471 | if (attrs) { | 471 | if (attrs) { |
472 | for (i = 0; attr_name(attrs[i]); i++) { | 472 | for (i = 0; attrs[i].attr.name; i++) { |
473 | error = device_create_bin_file(dev, &attrs[i]); | 473 | error = device_create_bin_file(dev, &attrs[i]); |
474 | if (error) | 474 | if (error) |
475 | break; | 475 | break; |
@@ -487,7 +487,7 @@ static void device_remove_bin_attributes(struct device *dev, | |||
487 | int i; | 487 | int i; |
488 | 488 | ||
489 | if (attrs) | 489 | if (attrs) |
490 | for (i = 0; attr_name(attrs[i]); i++) | 490 | for (i = 0; attrs[i].attr.name; i++) |
491 | device_remove_bin_file(dev, &attrs[i]); | 491 | device_remove_bin_file(dev, &attrs[i]); |
492 | } | 492 | } |
493 | 493 | ||