File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -327,10 +327,9 @@ static int sprd_wdt_probe(struct platform_device *pdev)
327
327
328
328
static int __maybe_unused sprd_wdt_pm_suspend (struct device * dev )
329
329
{
330
- struct watchdog_device * wdd = dev_get_drvdata (dev );
331
330
struct sprd_wdt * wdt = dev_get_drvdata (dev );
332
331
333
- if (watchdog_active (wdd ))
332
+ if (watchdog_active (& wdt -> wdd ))
334
333
sprd_wdt_stop (& wdt -> wdd );
335
334
sprd_wdt_disable (wdt );
336
335
@@ -339,15 +338,14 @@ static int __maybe_unused sprd_wdt_pm_suspend(struct device *dev)
339
338
340
339
static int __maybe_unused sprd_wdt_pm_resume (struct device * dev )
341
340
{
342
- struct watchdog_device * wdd = dev_get_drvdata (dev );
343
341
struct sprd_wdt * wdt = dev_get_drvdata (dev );
344
342
int ret ;
345
343
346
344
ret = sprd_wdt_enable (wdt );
347
345
if (ret )
348
346
return ret ;
349
347
350
- if (watchdog_active (wdd )) {
348
+ if (watchdog_active (& wdt -> wdd )) {
351
349
ret = sprd_wdt_start (& wdt -> wdd );
352
350
if (ret ) {
353
351
sprd_wdt_disable (wdt );
You can’t perform that action at this time.
0 commit comments