* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: [WATCHDOG] use resource_size() [WATCHDOG] iTCO_wdt: add PCI ID for the Intel EP80579 (Tolapai) SoC
···3030 * document number 316972-004, 316973-012: 82801I (ICH9)3131 * document number 319973-002, 319974-002: 82801J (ICH10)3232 * document number 322169-001, 322170-001: 5 Series, 3400 Series (PCH)3333+ * document number 320066-003, 320257-008: EP80597 (IICH)3334 */34353536/*···101100 TCO_PCH, /* PCH Desktop Full Featured */102101 TCO_PCHM, /* PCH Mobile Full Featured */103102 TCO_PCHMSFF, /* PCH Mobile SFF Full Featured */103103+ TCO_EP80579, /* EP80579 */104104};105105106106static struct {···145143 {"PCH Desktop Full Featured", 2},146144 {"PCH Mobile Full Featured", 2},147145 {"PCH Mobile SFF Full Featured", 2},146146+ {"EP80579", 2},148147 {NULL, 0}149148};150149···217214 { ITCO_PCI_DEVICE(0x3b00, TCO_PCH)},218215 { ITCO_PCI_DEVICE(0x3b01, TCO_PCHM)},219216 { ITCO_PCI_DEVICE(0x3b0d, TCO_PCHMSFF)},217217+ { ITCO_PCI_DEVICE(0x5031, TCO_EP80579)},220218 { 0, }, /* End of list */221219};222220MODULE_DEVICE_TABLE(pci, iTCO_wdt_pci_tbl);
+1-1
drivers/watchdog/mpcore_wdt.c
···350350 ret = -ENXIO;351351 goto err_free;352352 }353353- wdt->base = ioremap(res->start, res->end - res->start + 1);353353+ wdt->base = ioremap(res->start, resource_size(res));354354 if (!wdt->base) {355355 ret = -ENOMEM;356356 goto err_free;