diff options
-rw-r--r-- | drivers/watchdog/sp5100_tco.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 59108e48ada3..ae5e82cb83fa 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c | |||
@@ -313,7 +313,7 @@ static unsigned char __devinit sp5100_tco_setupdevice(void) | |||
313 | tcobase_phys = val; | 313 | tcobase_phys = val; |
314 | 314 | ||
315 | tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE); | 315 | tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE); |
316 | if (tcobase == 0) { | 316 | if (!tcobase) { |
317 | pr_err("failed to get tcobase address\n"); | 317 | pr_err("failed to get tcobase address\n"); |
318 | goto unreg_mem_region; | 318 | goto unreg_mem_region; |
319 | } | 319 | } |