lkml.org 
[lkml]   [2011]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] pnp: replace deprecated __check_region to request_region
    Date
    From: Wang Shaoyan <wangshaoyan.pt@taobao.com>

    The function __check_region is deprecated, use proper function request_region to replace it.

    Signed-off-by: Wang Shaoyan <wangshaoyan.pt@taobao.com>
    ---
    drivers/pnp/resource.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
    index b0ecacb..b1d8cae 100644
    --- a/drivers/pnp/resource.c
    +++ b/drivers/pnp/resource.c
    @@ -179,7 +179,7 @@ int pnp_check_port(struct pnp_dev *dev, struct resource *res)
    /* check if the resource is already in use, skip if the
    * device is active because it itself may be in use */
    if (!dev->active) {
    - if (__check_region(&ioport_resource, *port, length(port, end)))
    + if (!request_region(*port, length(port, end), "pnp"))
    return 0;
    }

    --
    1.7.0.4


    \
     
     \ /
      Last update: 2011-08-08 17:43    [W:0.020 / U:31.964 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site