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:
parent
c9eaa447e7
commit
ac1ef1fed3
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue