Changeset 36063


Ignore:
Timestamp:
2013-03-17T15:33:18+01:00 (5 years ago)
Author:
florian
Message:

mcs814x: use devm_request_and_ioremap in mcs814x-rng driver

Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mcs814x/files-3.3/drivers/char/hw_random/mcs814x-rng.c

    r33330 r36063  
    6262        rng->data_read = mcs814x_rng_data_read; 
    6363 
    64         if (!devm_request_mem_region(&pdev->dev, 
    65                                 res->start, resource_size(res), 
    66                                 pdev->name)) { 
    67                 ret = -EBUSY; 
    68                 goto out_rng; 
    69         } 
    70  
    71         priv->regs = devm_ioremap(&pdev->dev, res->start, resource_size(res)); 
     64        priv->regs = devm_request_and_ioremap(&pdev->dev, res); 
    7265        if (!priv->regs) { 
    7366                ret = -ENOMEM; 
Note: See TracChangeset for help on using the changeset viewer.