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:
89970a0
)
x86/pci-calgary: Use setup_timer() instead of open coding it.
author
Geliang Tang
<geliangtang@gmail.com>
Fri, 24 Mar 2017 14:15:14 +0000
(22:15 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 31 Mar 2017 08:21:04 +0000
(10:21 +0200)
Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Cc: iommu@lists.linux-foundation.org
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Muli Ben-Yehuda <mulix@mulix.org>
Link:
http://lkml.kernel.org/r/e4f1888b9e4a87f6a6345f86ed23071483763b22.1490340972.git.geliangtang@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-calgary_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/pci-calgary_64.c
b/arch/x86/kernel/pci-calgary_64.c
index 0c150c06fa5a5642a6630cfeed2b6a74a1acab17..fda7867046d0931a9947d4488b9b69f6e6a128f0 100644
(file)
--- a/
arch/x86/kernel/pci-calgary_64.c
+++ b/
arch/x86/kernel/pci-calgary_64.c
@@
-1007,9
+1007,8
@@
static void __init calgary_enable_translation(struct pci_dev *dev)
writel(cpu_to_be32(val32), target);
readl(target); /* flush */
- init_timer(&tbl->watchdog_timer);
- tbl->watchdog_timer.function = &calgary_watchdog;
- tbl->watchdog_timer.data = (unsigned long)dev;
+ setup_timer(&tbl->watchdog_timer, &calgary_watchdog,
+ (unsigned long)dev);
mod_timer(&tbl->watchdog_timer, jiffies);
}