summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-04-14 12:55:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 13:40:51 -0700
commit8283b4919e00fb110ac338d6b9984ca92d5030fa (patch)
tree3b8f95f677972af401d715ef9e5e24bbead2b475 /drivers/iommu
parent1bb6c08abfb653ce6e65d8ab4ddef403227afedf (diff)
driver core: dev_set_drvdata can no longer fail
So there is no point in checking its return value, which will soon disappear. Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/exynos-iommu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index 074018979cdf..b97a6ab95a9d 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -542,12 +542,7 @@ static int exynos_sysmmu_probe(struct platform_device *pdev)
goto err_alloc;
}
- ret = dev_set_drvdata(dev, data);
- if (ret) {
- dev_dbg(dev, "Unabled to initialize driver data\n");
- goto err_init;
- }
-
+ dev_set_drvdata(dev, data);
data->nsfrs = pdev->num_resources / 2;
data->sfrbases = kmalloc(sizeof(*data->sfrbases) * data->nsfrs,
GFP_KERNEL);