Changeset 36062


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

mcs814x: use devm_request_and_ioremap helper for nuport_mac driver

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c

    r36059 r36062  
    10451045                priv->buffer_shifting_len = 2; 
    10461046 
    1047         priv->mac_base = devm_ioremap(&pdev->dev, 
    1048                                 regs->start, resource_size(regs)); 
     1047        priv->mac_base = devm_request_and_ioremap(&pdev->dev, regs); 
    10491048        if (!priv->mac_base) { 
    10501049                dev_err(&pdev->dev, "failed to remap regs\n"); 
     
    10531052        } 
    10541053 
    1055         priv->dma_base = devm_ioremap(&pdev->dev, 
    1056                                 dma->start, resource_size(dma)); 
     1054        priv->dma_base = devm_request_and_ioremap(&pdev->dev, dma); 
    10571055        if (!priv->dma_base) { 
    10581056                dev_err(&pdev->dev, "failed to remap dma-regs\n"); 
Note: See TracChangeset for help on using the changeset viewer.