From: Stephen Rothwell Date: Fri, 28 Jun 2013 03:20:29 +0000 (+1000) Subject: Merge remote-tracking branch 'crypto/master' X-Git-Tag: next-20130628~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b32875be0911e1dd45bef4487bc80e55d9dd3a04;p=karo-tx-linux.git Merge remote-tracking branch 'crypto/master' --- b32875be0911e1dd45bef4487bc80e55d9dd3a04 diff --cc drivers/char/hw_random/omap-rng.c index d2903e772270,e5deb99feb28..6843ec87b98b --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c @@@ -116,9 -116,14 +116,9 @@@ static int omap_rng_probe(struct platfo }; omap_rng_ops.priv = (unsigned long)priv; - dev_set_drvdata(&pdev->dev, priv); + platform_set_drvdata(pdev, 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);