We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94213a3 commit 54ccba2Copy full SHA for 54ccba2
drivers/watchdog/ar7_wdt.c
@@ -63,8 +63,6 @@ static DEFINE_SPINLOCK(wdt_lock);
63
/* XXX currently fixed, allows max margin ~68.72 secs */
64
#define prescale_value 0xffff
65
66
-/* Resource of the WDT registers */
67
-static struct resource *ar7_regs_wdt;
68
/* Pointer to the remapped WDT IO space */
69
static struct ar7_wdt *ar7_wdt;
70
@@ -265,9 +263,7 @@ static int ar7_wdt_probe(struct platform_device *pdev)
265
263
{
266
264
int rc;
267
268
- ar7_regs_wdt =
269
- platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
270
- ar7_wdt = devm_ioremap_resource(&pdev->dev, ar7_regs_wdt);
+ ar7_wdt = devm_platform_ioremap_resource_byname(pdev, "regs");
271
if (IS_ERR(ar7_wdt))
272
return PTR_ERR(ar7_wdt);
273
0 commit comments