/* XXX currently fixed, allows max margin ~68.72 secs */
 #define prescale_value 0xffff
 
-/* Resource of the WDT registers */
-static struct resource *ar7_regs_wdt;
 /* Pointer to the remapped WDT IO space */
 static struct ar7_wdt *ar7_wdt;
 
 {
        int rc;
 
-       ar7_regs_wdt =
-               platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
-       ar7_wdt = devm_ioremap_resource(&pdev->dev, ar7_regs_wdt);
+       ar7_wdt = devm_platform_ioremap_resource_byname(pdev, "regs");
        if (IS_ERR(ar7_wdt))
                return PTR_ERR(ar7_wdt);