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

The function can fail, don't ignore its error value.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2014-02-21 16:54:53 +01:00
parent c9eaa447e7
commit ac1ef1fed3
1 changed files with 1 additions and 2 deletions

View File

@ -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 = {