summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/omap-rng.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:46 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:46 +0200
commit2a9ba2ee5f440dd6712ebcb5011e9f00309187c5 (patch)
tree57b2e9fdde57f9ace1a323fea9bf1221e2b42061 /drivers/char/hw_random/omap-rng.c
parent29589f06d2430efb76c227b0117029ebd3101eec (diff)
downloadlinux-2a9ba2ee5f440dd6712ebcb5011e9f00309187c5.tar.gz
linux-2a9ba2ee5f440dd6712ebcb5011e9f00309187c5.tar.bz2
linux-2a9ba2ee5f440dd6712ebcb5011e9f00309187c5.zip
drivers/char/hw_random: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/char/hw_random/omap-rng.c')
-rw-r--r--drivers/char/hw_random/omap-rng.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c
index 749dc16ca2cc..d2903e772270 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -119,11 +119,6 @@ static int omap_rng_probe(struct platform_device *pdev)
dev_set_drvdata(&pdev->dev, priv);
priv->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!priv->mem_res) {
- ret = -ENOENT;
- goto err_ioremap;
- }
-
priv->base = devm_ioremap_resource(&pdev->dev, priv->mem_res);
if (IS_ERR(priv->base)) {
ret = PTR_ERR(priv->base);