diff options
author | Geliang Tang <geliangtang@gmail.com> | 2017-03-24 22:15:14 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-03-31 10:21:04 +0200 |
commit | 352ef03ca0ad07156bcee6e244c2df6f1a19bb05 (patch) | |
tree | fb445b3ca28b5861580c83422fa506926447afe9 /arch/x86/kernel | |
parent | 89970a04d70c6c9e5e4492fd4096c0b5630a478c (diff) | |
download | op-kernel-dev-352ef03ca0ad07156bcee6e244c2df6f1a19bb05.zip op-kernel-dev-352ef03ca0ad07156bcee6e244c2df6f1a19bb05.tar.gz |
x86/pci-calgary: Use setup_timer() instead of open coding it.
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>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/pci-calgary_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c index 0c150c0..fda7867 100644 --- 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); } |