forked from Minki/linux
sh: heartbeat: ioremap is expected to succeed
ioremap is expected to succeed Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
4377e605e0
commit
1de83e94e6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user