projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415601b
)
ACPI/APEI: Use setup_deferrable_timer()
author
Geliang Tang
<geliangtang@gmail.com>
Tue, 18 Apr 2017 18:45:28 +0000
(20:45 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Wed, 19 Apr 2017 10:00:14 +0000
(12:00 +0200)
Use setup_deferrable_timer() instead of init_timer_deferrable() to
simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
Link:
http://lkml.kernel.org/r/3afa5498142ef68256023257dad37b9f8352e65e.1489060803.git.geliangtang@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/acpi/apei/ghes.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/apei/ghes.c
b/drivers/acpi/apei/ghes.c
index b192b42a835105a68038ce13d568fad7154497c4..33ca1968512f0a36d3c1ce0781831dff1e48acb6 100644
(file)
--- a/
drivers/acpi/apei/ghes.c
+++ b/
drivers/acpi/apei/ghes.c
@@
-1005,9
+1005,8
@@
static int ghes_probe(struct platform_device *ghes_dev)
switch (generic->notify.type) {
case ACPI_HEST_NOTIFY_POLLED:
- ghes->timer.function = ghes_poll_func;
- ghes->timer.data = (unsigned long)ghes;
- init_timer_deferrable(&ghes->timer);
+ setup_deferrable_timer(&ghes->timer, ghes_poll_func,
+ (unsigned long)ghes);
ghes_add_timer(ghes);
break;
case ACPI_HEST_NOTIFY_EXTERNAL: