]> git.baikalelectronics.ru Git - kernel.git/commitdiff
watchdog: of_xilinx_wdt: Used dev_dbg()
authorSrinivas Goud <srinivas.goud@xilinx.com>
Mon, 29 Mar 2021 16:19:37 +0000 (21:49 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 21 Jun 2021 06:49:07 +0000 (08:49 +0200)
This patch removes pr_info in stop function and adds dev_dbg()
in start/stop function to display device specific debug info.

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210329161939.37680-4-srinivas.neeli@xilinx.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/of_xilinx_wdt.c

index f76ec56859a40059e17b1c7a5f17ec0da38b0dfe..5f31fdea517ac86a1c17faa52c3c4c25427a93af 100644 (file)
@@ -71,6 +71,8 @@ static int xilinx_wdt_start(struct watchdog_device *wdd)
 
        spin_unlock(&xdev->spinlock);
 
+       dev_dbg(wdd->parent, "Watchdog Started!\n");
+
        return 0;
 }
 
@@ -92,7 +94,7 @@ static int xilinx_wdt_stop(struct watchdog_device *wdd)
 
        clk_disable(xdev->clk);
 
-       pr_info("Stopped!\n");
+       dev_dbg(wdd->parent, "Watchdog Stopped!\n");
 
        return 0;
 }