tegra_wdt.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | tegra_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782) |
---|---|
1/* 2 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 204 unchanged lines hidden (view full) --- 213 214 /* Initialize struct watchdog_device. */ 215 wdd = &wdt->wdd; 216 wdd->timeout = heartbeat; 217 wdd->info = &tegra_wdt_info; 218 wdd->ops = &tegra_wdt_ops; 219 wdd->min_timeout = MIN_WDT_TIMEOUT; 220 wdd->max_timeout = MAX_WDT_TIMEOUT; | 1/* 2 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 204 unchanged lines hidden (view full) --- 213 214 /* Initialize struct watchdog_device. */ 215 wdd = &wdt->wdd; 216 wdd->timeout = heartbeat; 217 wdd->info = &tegra_wdt_info; 218 wdd->ops = &tegra_wdt_ops; 219 wdd->min_timeout = MIN_WDT_TIMEOUT; 220 wdd->max_timeout = MAX_WDT_TIMEOUT; |
221 wdd->parent = &pdev->dev; |
|
221 222 watchdog_set_drvdata(wdd, wdt); 223 224 watchdog_set_nowayout(wdd, nowayout); 225 226 ret = watchdog_register_device(wdd); 227 if (ret) { 228 dev_err(&pdev->dev, --- 73 unchanged lines hidden --- | 222 223 watchdog_set_drvdata(wdd, wdt); 224 225 watchdog_set_nowayout(wdd, nowayout); 226 227 ret = watchdog_register_device(wdd); 228 if (ret) { 229 dev_err(&pdev->dev, --- 73 unchanged lines hidden --- |