diff options
| -rw-r--r-- | drivers/powercap/powercap_sys.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/powercap/powercap_sys.c b/drivers/powercap/powercap_sys.c index 5b10b50f8686..64b2b2501a79 100644 --- a/drivers/powercap/powercap_sys.c +++ b/drivers/powercap/powercap_sys.c | |||
| @@ -673,15 +673,13 @@ EXPORT_SYMBOL_GPL(powercap_unregister_control_type); | |||
| 673 | 673 | ||
| 674 | static int __init powercap_init(void) | 674 | static int __init powercap_init(void) |
| 675 | { | 675 | { |
| 676 | int result = 0; | 676 | int result; |
| 677 | 677 | ||
| 678 | result = seed_constraint_attributes(); | 678 | result = seed_constraint_attributes(); |
| 679 | if (result) | 679 | if (result) |
| 680 | return result; | 680 | return result; |
| 681 | 681 | ||
| 682 | result = class_register(&powercap_class); | 682 | return class_register(&powercap_class); |
| 683 | |||
| 684 | return result; | ||
| 685 | } | 683 | } |
| 686 | 684 | ||
| 687 | device_initcall(powercap_init); | 685 | device_initcall(powercap_init); |
