mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
platform/x86: panasonic-laptop: Make pcc_register_optd_notifier() void
Convert pcc_register_optd_notifier() whose return value is never used to a void function. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/5093613.31r3eYUQgx@rafael.j.wysocki Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
6da22b031a
commit
e2b0cd5c26
|
|
@ -891,7 +891,7 @@ static void pcc_optd_notify(acpi_handle handle, u32 event, void *data)
|
|||
set_optd_power_state(0);
|
||||
}
|
||||
|
||||
static int pcc_register_optd_notifier(struct pcc_acpi *pcc, char *node)
|
||||
static void pcc_register_optd_notifier(struct pcc_acpi *pcc, char *node)
|
||||
{
|
||||
acpi_status status;
|
||||
acpi_handle handle;
|
||||
|
|
@ -904,10 +904,7 @@ static int pcc_register_optd_notifier(struct pcc_acpi *pcc, char *node)
|
|||
pcc_optd_notify, pcc);
|
||||
if (ACPI_FAILURE(status))
|
||||
pr_err("Failed to register notify on %s\n", node);
|
||||
} else
|
||||
return -ENODEV;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void pcc_unregister_optd_notifier(struct pcc_acpi *pcc, char *node)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user