ARM: cpuidle: Fix error return code
[deliverable/linux.git] / drivers / cpuidle / cpuidle-arm.c
index 4ba3d3fe142f3ae4dc7039c98b7eeaa4b3aac78d..f440d385ed3471a3abd0ff5ce63d133c5f46785f 100644 (file)
@@ -121,6 +121,7 @@ static int __init arm_idle_init(void)
                dev = kzalloc(sizeof(*dev), GFP_KERNEL);
                if (!dev) {
                        pr_err("Failed to allocate cpuidle device\n");
+                       ret = -ENOMEM;
                        goto out_fail;
                }
                dev->cpu = cpu;
This page took 0.026172 seconds and 5 git commands to generate.