PCI: pciehp: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Thu, 5 Oct 2017 00:53:48 +0000 (17:53 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Nov 2017 00:48:57 +0000 (18:48 -0600)
commitc4459a086748848b8a498282780f708c235a06a5
tree46dec98d52bd741595258bb4e7918c22d5d5f457
parent05196e258a617ee14dd3255c480cbc3f0caff5ce
PCI: pciehp: Convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly. This fixes what appears to be a bug
in passing the wrong pointer to the timer handler (address of ctrl pointer
instead of ctrl pointer).

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Mayurkumar Patel <mayurkumar.patel@intel.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
drivers/pci/hotplug/pciehp_hpc.c