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 79cc4d2 commit b3220bdCopy full SHA for b3220bd
drivers/watchdog/rti_wdt.c
@@ -194,7 +194,6 @@ static int rti_wdt_probe(struct platform_device *pdev)
194
{
195
int ret = 0;
196
struct device *dev = &pdev->dev;
197
- struct resource *wdt_mem;
198
struct watchdog_device *wdd;
199
struct rti_wdt_device *wdt;
200
struct clk *clk;
@@ -246,8 +245,7 @@ static int rti_wdt_probe(struct platform_device *pdev)
246
245
watchdog_set_nowayout(wdd, 1);
247
watchdog_set_restart_priority(wdd, 128);
248
249
- wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
250
- wdt->base = devm_ioremap_resource(dev, wdt_mem);
+ wdt->base = devm_platform_ioremap_resource(pdev, 0);
251
if (IS_ERR(wdt->base)) {
252
ret = PTR_ERR(wdt->base);
253
goto err_iomap;
0 commit comments