qcom-wdt.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) qcom-wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782)
1/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 157 unchanged lines hidden (view full) ---

166 goto err_clk_unprepare;
167 }
168
169 wdt->wdd.dev = &pdev->dev;
170 wdt->wdd.info = &qcom_wdt_info;
171 wdt->wdd.ops = &qcom_wdt_ops;
172 wdt->wdd.min_timeout = 1;
173 wdt->wdd.max_timeout = 0x10000000U / wdt->rate;
1/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 157 unchanged lines hidden (view full) ---

166 goto err_clk_unprepare;
167 }
168
169 wdt->wdd.dev = &pdev->dev;
170 wdt->wdd.info = &qcom_wdt_info;
171 wdt->wdd.ops = &qcom_wdt_ops;
172 wdt->wdd.min_timeout = 1;
173 wdt->wdd.max_timeout = 0x10000000U / wdt->rate;
174 wdt->wdd.parent = &pdev->dev;
174
175 /*
176 * If 'timeout-sec' unspecified in devicetree, assume a 30 second
177 * default, unless the max timeout is less than 30 seconds, then use
178 * the max instead.
179 */
180 wdt->wdd.timeout = min(wdt->wdd.max_timeout, 30U);
181 watchdog_init_timeout(&wdt->wdd, 0, &pdev->dev);

--- 52 unchanged lines hidden ---
175
176 /*
177 * If 'timeout-sec' unspecified in devicetree, assume a 30 second
178 * default, unless the max timeout is less than 30 seconds, then use
179 * the max instead.
180 */
181 wdt->wdd.timeout = min(wdt->wdd.max_timeout, 30U);
182 watchdog_init_timeout(&wdt->wdd, 0, &pdev->dev);

--- 52 unchanged lines hidden ---