Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[WATCHDOG] pci: use pci_ioremap_bar() in drivers/watchdog

Use the newly introduced pci_ioremap_bar() function in drivers/watchdog.
pci_ioremap_bar() just takes a pci device and a bar number, with the goal
of making it really hard to get wrong, while also having a central place
to stick sanity checks.


Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Arjan van de Ven and committed by
Wim Van Sebroeck
af4c293f 57f8f7b6

+1 -2
+1 -2
drivers/watchdog/i6300esb.c
··· 394 394 goto err_disable; 395 395 } 396 396 397 - BASEADDR = ioremap(pci_resource_start(esb_pci, 0), 398 - pci_resource_len(esb_pci, 0)); 397 + BASEADDR = pci_ioremap_bar(esb_pci, 0); 399 398 if (BASEADDR == NULL) { 400 399 /* Something's wrong here, BASEADDR has to be set */ 401 400 printk(KERN_ERR PFX "failed to get BASEADDR\n");