From 7777fdbc2547ec106afbe4bd5d4f8a2058133bfb Mon Sep 17 00:00:00 2001 From: Jaehyoung Choi Date: Fri, 12 Jan 2018 21:39:32 +0900 Subject: [PATCH] [COMMON] watchdog: s3c2410_wdt: Fix debug code for kernel 4.14 Change-Id: I7486d531a65859a17e9141c5f5e21ef1ebb4215f Signed-off-by: Jaehyoung Choi --- drivers/watchdog/s3c2410_wdt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 5ca05e078532..08f824463e7e 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -45,7 +45,6 @@ #define S3C2410_WTCLRINT 0x0c #define S3C2410_WTCNT_MAXCNT 0xffff -#define S3C2410_WTCLRINT 0x0C #define S3C2410_WTCON_RSTEN (1 << 0) #define S3C2410_WTCON_INTEN (1 << 2) @@ -820,7 +819,7 @@ static int s3c2410wdt_multistage_wdt_start(void) writel(s3c_wdt[index]->count, s3c_wdt[index]->reg_base + S3C2410_WTCNT); writel(wtcon, s3c_wdt[index]->reg_base + S3C2410_WTCON); - DBG("%s: count=0x%08x, wtcon=%08lx\n", + dev_info(s3c_wdt[index]->dev, "%s: count=0x%08x, wtcon=%08lx\n", __func__, s3c_wdt[index]->count, wtcon); return 0; @@ -1175,7 +1174,7 @@ static int s3c2410wdt_probe(struct platform_device *pdev) goto err; } - DBG("probe: mapped reg_base=%p\n", wdt->reg_base); + dev_info(dev, "probe: mapped reg_base=%p\n", wdt->reg_base); wdt->rate_clock = devm_clk_get(dev, "rate_watchdog"); if (IS_ERR(wdt->rate_clock)) { -- 2.20.1