mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mcs814x: use devm_request_and_ioremap in mcs814x-rng driver
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36063 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -61,14 +61,7 @@ static int mcs814x_rng_probe(struct platform_device *pdev)
|
||||
rng->name = pdev->name;
|
||||
rng->data_read = mcs814x_rng_data_read;
|
||||
|
||||
if (!devm_request_mem_region(&pdev->dev,
|
||||
res->start, resource_size(res),
|
||||
pdev->name)) {
|
||||
ret = -EBUSY;
|
||||
goto out_rng;
|
||||
}
|
||||
|
||||
priv->regs = devm_ioremap(&pdev->dev, res->start, resource_size(res));
|
||||
priv->regs = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!priv->regs) {
|
||||
ret = -ENOMEM;
|
||||
goto out_rng;
|
||||
|
||||
Reference in New Issue
Block a user