lkml.org 
[lkml]   [2012]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/3] gpiolib: Convert to devres_release()
    Date
    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    ---
    drivers/gpio/devres.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)
    diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c
    index d21a9ff..9e9947c 100644
    --- a/drivers/gpio/devres.c
    +++ b/drivers/gpio/devres.c
    @@ -112,8 +112,7 @@ int devm_gpio_request_one(struct device *dev, unsigned gpio,
    void devm_gpio_free(struct device *dev, unsigned int gpio)
    {

    - WARN_ON(devres_destroy(dev, devm_gpio_release, devm_gpio_match,
    + WARN_ON(devres_release(dev, devm_gpio_release, devm_gpio_match,
    &gpio));
    - gpio_free(gpio);
    }
    EXPORT_SYMBOL(devm_gpio_free);
    --
    1.7.10


    \
     
     \ /
      Last update: 2012-05-03 19:41    [from the cache]
    ©2003-2014 Jasper Spaans. Advertise on this site