diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-02-21 10:54:53 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-04-17 06:16:12 -0400 |
commit | ac1ef1fed3d2c1cd4902ecb92876cb239c97a870 (patch) | |
tree | 51190f5de523a75f871dbc401726a285b40e0a51 /drivers/iommu | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/shmobile-ipmmu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/shmobile-ipmmu.c b/drivers/iommu/shmobile-ipmmu.c index e3bc2e19b6dd..6ba611002c6f 100644 --- a/drivers/iommu/shmobile-ipmmu.c +++ b/drivers/iommu/shmobile-ipmmu.c | |||
@@ -117,8 +117,7 @@ static int ipmmu_probe(struct platform_device *pdev) | |||
117 | platform_set_drvdata(pdev, ipmmu); | 117 | platform_set_drvdata(pdev, ipmmu); |
118 | ipmmu_reg_write(ipmmu, IMCTR1, 0x0); /* disable TLB */ | 118 | ipmmu_reg_write(ipmmu, IMCTR1, 0x0); /* disable TLB */ |
119 | ipmmu_reg_write(ipmmu, IMCTR2, 0x0); /* disable PMB */ | 119 | ipmmu_reg_write(ipmmu, IMCTR2, 0x0); /* disable PMB */ |
120 | ipmmu_iommu_init(ipmmu); | 120 | return ipmmu_iommu_init(ipmmu); |
121 | return 0; | ||
122 | } | 121 | } |
123 | 122 | ||
124 | static struct platform_driver ipmmu_driver = { | 123 | static struct platform_driver ipmmu_driver = { |