提交 ac1ef1fe 编写于 作者: L Laurent Pinchart

iommu/shmobile: Don't ignore the ipmmu_iommu_init() return value

The function can fail, don't ignore its error value.
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
上级 c9eaa447
...@@ -117,8 +117,7 @@ static int ipmmu_probe(struct platform_device *pdev) ...@@ -117,8 +117,7 @@ static int ipmmu_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ipmmu); platform_set_drvdata(pdev, ipmmu);
ipmmu_reg_write(ipmmu, IMCTR1, 0x0); /* disable TLB */ ipmmu_reg_write(ipmmu, IMCTR1, 0x0); /* disable TLB */
ipmmu_reg_write(ipmmu, IMCTR2, 0x0); /* disable PMB */ ipmmu_reg_write(ipmmu, IMCTR2, 0x0); /* disable PMB */
ipmmu_iommu_init(ipmmu); return ipmmu_iommu_init(ipmmu);
return 0;
} }
static struct platform_driver ipmmu_driver = { static struct platform_driver ipmmu_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册