]> git.karo-electronics.de Git - linux-beck.git/commit
ACPI / CPPC: set an error code on probe error path
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 30 Nov 2016 19:22:54 +0000 (22:22 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Nov 2016 22:16:31 +0000 (23:16 +0100)
commit501634759d55a5b56967de6d9465acf02bbc3565
treec0bfc2611d8d8658a115592ba9ba1df26c294b47
parente5517c2a5a49ed5e99047008629f1cd60246ea0e
ACPI / CPPC: set an error code on probe error path

We should return -EINVAL (instead of 0) if get_cpu_device() fails.

Fixes: 158c998ea44b (ACPI / CPPC: add sysfs support to compute delivered performance)
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c