]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
watchdog: of_xilinx_wdt: Used dev_dbg()
authorSrinivas Goud <srinivas.goud@xilinx.com>
Tue, 9 Apr 2019 14:29:22 +0000 (19:59 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 10 Apr 2019 09:10:13 +0000 (11:10 +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>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
drivers/watchdog/of_xilinx_wdt.c

index 17aa03cf6a9c6a6a2b57c05964306ac858583335..cde4e9c6d193a6a07c207d763acfbdfe10a74d78 100644 (file)
@@ -50,6 +50,7 @@ static int xilinx_wdt_start(struct watchdog_device *wdd)
        int ret;
        u32 control_status_reg;
        struct xwdt_device *xdev = watchdog_get_drvdata(wdd);
+       struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
 
        ret = clk_enable(xdev->clk);
        if (ret) {
@@ -70,6 +71,8 @@ static int xilinx_wdt_start(struct watchdog_device *wdd)
 
        spin_unlock(&xdev->spinlock);
 
+       dev_dbg(xilinx_wdt_wdd->parent, "Watchdog Started!\n");
+
        return 0;
 }
 
@@ -77,6 +80,7 @@ static int xilinx_wdt_stop(struct watchdog_device *wdd)
 {
        u32 control_status_reg;
        struct xwdt_device *xdev = watchdog_get_drvdata(wdd);
+       struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
 
        spin_lock(&xdev->spinlock);
 
@@ -91,7 +95,7 @@ static int xilinx_wdt_stop(struct watchdog_device *wdd)
 
        clk_disable(xdev->clk);
 
-       pr_info("Stopped!\n");
+       dev_dbg(xilinx_wdt_wdd->parent, "Watchdog Stopped!\n");
 
        return 0;
 }