lkml.org 
[lkml]   [2009]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subjectpnx4008_wdt.c: use resource_size()
    Date
    From
    Use resource_size().

    Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
    Cc: Wim Van Sebroeck <wim@iguana.be>

    ---
    diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c
    index 4d227b1..430a584 100644
    --- a/drivers/watchdog/pnx4008_wdt.c
    +++ b/drivers/watchdog/pnx4008_wdt.c
    @@ -264,7 +264,7 @@ static int __devinit pnx4008_wdt_probe(struct platform_device *pdev)
    return -ENOENT;
    }

    - size = res->end - res->start + 1;
    + size = resource_size(res);
    wdt_mem = request_mem_region(res->start, size, pdev->name);

    if (wdt_mem == NULL) {

    \
     
     \ /
      Last update: 2009-12-04 18:47    [W:1.514 / U:0.984 seconds]
    ©2003-2014 Jasper Spaans. hosted at Digital Ocean