Skip to content

Commit

Permalink
sh: heartbeat: ioremap is expected to succeed
Browse files Browse the repository at this point in the history
ioremap is expected to succeed

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Roel Kluin authored and Paul Mundt committed Feb 26, 2008
1 parent 4377e60 commit 1de83e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/drivers/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1de83e9

Please sign in to comment.