wm831x_wdt.c (f01387d2693813eb5271a3448e6a082322c7d75d) wm831x_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782)
1/*
2 * Watchdog driver for the wm831x PMICs
3 *
4 * Copyright (C) 2009 Wolfson Microelectronics
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation

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

210
211 mutex_init(&driver_data->lock);
212 driver_data->wm831x = wm831x;
213
214 wm831x_wdt = &driver_data->wdt;
215
216 wm831x_wdt->info = &wm831x_wdt_info;
217 wm831x_wdt->ops = &wm831x_wdt_ops;
1/*
2 * Watchdog driver for the wm831x PMICs
3 *
4 * Copyright (C) 2009 Wolfson Microelectronics
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation

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

210
211 mutex_init(&driver_data->lock);
212 driver_data->wm831x = wm831x;
213
214 wm831x_wdt = &driver_data->wdt;
215
216 wm831x_wdt->info = &wm831x_wdt_info;
217 wm831x_wdt->ops = &wm831x_wdt_ops;
218 wm831x_wdt->parent = &pdev->dev;
218 watchdog_set_nowayout(wm831x_wdt, nowayout);
219 watchdog_set_drvdata(wm831x_wdt, driver_data);
220
221 reg = wm831x_reg_read(wm831x, WM831X_WATCHDOG);
222 reg &= WM831X_WDOG_TO_MASK;
223 for (i = 0; i < ARRAY_SIZE(wm831x_wdt_cfgs); i++)
224 if (wm831x_wdt_cfgs[i].val == reg)
225 break;

--- 87 unchanged lines hidden ---
219 watchdog_set_nowayout(wm831x_wdt, nowayout);
220 watchdog_set_drvdata(wm831x_wdt, driver_data);
221
222 reg = wm831x_reg_read(wm831x, WM831X_WATCHDOG);
223 reg &= WM831X_WDOG_TO_MASK;
224 for (i = 0; i < ARRAY_SIZE(wm831x_wdt_cfgs); i++)
225 if (wm831x_wdt_cfgs[i].val == reg)
226 break;

--- 87 unchanged lines hidden ---