aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index d7835ba9fb8c..25d9a96484dd 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -440,12 +440,14 @@ int cpu_add_sysdev_attr_group(struct attribute_group *attrs)
440{ 440{
441 int cpu; 441 int cpu;
442 struct sys_device *sysdev; 442 struct sys_device *sysdev;
443 int ret;
443 444
444 mutex_lock(&cpu_mutex); 445 mutex_lock(&cpu_mutex);
445 446
446 for_each_possible_cpu(cpu) { 447 for_each_possible_cpu(cpu) {
447 sysdev = get_cpu_sysdev(cpu); 448 sysdev = get_cpu_sysdev(cpu);
448 sysfs_create_group(&sysdev->kobj, attrs); 449 ret = sysfs_create_group(&sysdev->kobj, attrs);
450 WARN_ON(ret != 0);
449 } 451 }
450 452
451 mutex_unlock(&cpu_mutex); 453 mutex_unlock(&cpu_mutex);