sh: heartbeat: ioremap is expected to succeed
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 18 Feb 2008 13:09:10 +0000 (14:09 +0100)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 26 Feb 2008 05:06:43 +0000 (14:06 +0900)
ioremap is expected to succeed

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/heartbeat.c

index b76a14f..ab77b0e 100644 (file)
@@ -93,7 +93,7 @@ static int heartbeat_drv_probe(struct platform_device *pdev)
        }
 
        hd->base = ioremap_nocache(res->start, res->end - res->start + 1);
-       if (!unlikely(hd->base)) {
+       if (unlikely(!hd->base)) {
                dev_err(&pdev->dev, "ioremap failed\n");
 
                if (!pdev->dev.platform_data)