mtk_wdt.c (1758047057dbe329be712a31b79db7151b5871f8) | mtk_wdt.c (1bafac47a4f70a169427ffcf59fb673d23e39105) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Mediatek Watchdog Driver 4 * 5 * Copyright (C) 2014 Matthias Brugger 6 * 7 * Matthias Brugger <matthias.bgg@gmail.com> 8 * --- 325 unchanged lines hidden (view full) --- 334 return -ENOMEM; 335 336 platform_set_drvdata(pdev, mtk_wdt); 337 338 mtk_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0); 339 if (IS_ERR(mtk_wdt->wdt_base)) 340 return PTR_ERR(mtk_wdt->wdt_base); 341 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Mediatek Watchdog Driver 4 * 5 * Copyright (C) 2014 Matthias Brugger 6 * 7 * Matthias Brugger <matthias.bgg@gmail.com> 8 * --- 325 unchanged lines hidden (view full) --- 334 return -ENOMEM; 335 336 platform_set_drvdata(pdev, mtk_wdt); 337 338 mtk_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0); 339 if (IS_ERR(mtk_wdt->wdt_base)) 340 return PTR_ERR(mtk_wdt->wdt_base); 341 |
342 irq = platform_get_irq(pdev, 0); | 342 irq = platform_get_irq_optional(pdev, 0); |
343 if (irq > 0) { 344 err = devm_request_irq(&pdev->dev, irq, mtk_wdt_isr, 0, "wdt_bark", 345 &mtk_wdt->wdt_dev); 346 if (err) 347 return err; 348 349 mtk_wdt->wdt_dev.info = &mtk_wdt_pt_info; 350 mtk_wdt->wdt_dev.pretimeout = WDT_MAX_TIMEOUT / 2; --- 104 unchanged lines hidden --- | 343 if (irq > 0) { 344 err = devm_request_irq(&pdev->dev, irq, mtk_wdt_isr, 0, "wdt_bark", 345 &mtk_wdt->wdt_dev); 346 if (err) 347 return err; 348 349 mtk_wdt->wdt_dev.info = &mtk_wdt_pt_info; 350 mtk_wdt->wdt_dev.pretimeout = WDT_MAX_TIMEOUT / 2; --- 104 unchanged lines hidden --- |