24 Sep, 2016
2 commits
-
Check for watchdog_ops structures that are only stored in the ops field of
a watchdog_device structure. This field is declared const, so watchdog_ops
structures that have this property can be declared as const also.The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)//
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct watchdog_ops i@p = { ... };@ok@
identifier r.i;
struct watchdog_device e;
position p;
@@
e.ops = &i@p;@bad@
position p != {r.p,ok.p};
identifier r.i;
struct watchdog_ops e;
@@
e@i@p@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct watchdog_ops i = { ... };
//Signed-off-by: Julia Lawall
Reviewed-by: Guenter Roeck
Signed-off-by: Guenter Roeck
Signed-off-by: Wim Van Sebroeck -
Currently even if no users are there the suspend tries to
stop the watchdog and resume starts it.so after resume the watchdog starts and resets the board.
Fix the same by adding a check for users.Reviewed-by: Guenter Roeck
Signed-off-by: Shubhrajyoti Datta
Signed-off-by: Guenter Roeck
Signed-off-by: Wim Van Sebroeck
28 Dec, 2015
1 commit
-
Use to_platform_device() instead of open-coding it.
Signed-off-by: Geliang Tang
Signed-off-by: Guenter Roeck
Signed-off-by: Wim Van Sebroeck
13 Dec, 2015
1 commit
-
Get rid of the custom reboot notifier block registration and use the one
provided by the watchdog core.Signed-off-by: Damien Riegel
Reviewed-by: Guenter Roeck
Reviewed-by: Vivien Didelot
Signed-off-by: Guenter Roeck
Signed-off-by: Wim Van Sebroeck
21 Jan, 2015
1 commit
-
This platform_driver does not need to set an owner, it will be populated by the
driver core.Signed-off-by: Wolfram Sang
Signed-off-by: Wim Van Sebroeck
21 Oct, 2014
1 commit
-
Add Cadence WDT driver. This is used by Xilinx Zynq.
Signed-off-by: Harini Katakam
Reviewed-by: Guenter Roeck
Signed-off-by: Wim Van Sebroeck