lkml.org 
[lkml]   [2014]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v5 7/7] gpio/xilinx: Use of_mm_gpiochip_remove
    Date
    Use the newly created of_mm_gpiochip_remove function for cleaning up
    of_mm_gpiochip_add

    Suggested-by: Alexandre Courbot <gnurou@gmail.com>
    Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
    ---
    drivers/gpio/gpio-xilinx.c | 5 +----
    1 file changed, 1 insertion(+), 4 deletions(-)

    diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c
    index e89fb42..61243d1 100644
    --- a/drivers/gpio/gpio-xilinx.c
    +++ b/drivers/gpio/gpio-xilinx.c
    @@ -236,10 +236,7 @@ static int xgpio_remove(struct platform_device *pdev)
    {
    struct xgpio_instance *chip = platform_get_drvdata(pdev);

    - gpiochip_remove(&chip->mmchip.gc);
    -
    - iounmap(chip->mmchip.regs);
    - kfree(chip->mmchip.gc.label);
    + of_mm_gpiochip_remove(&chip->mmchip);

    return 0;
    }
    --
    2.1.3


    \
     
     \ /
      Last update: 2014-12-17 17:21    [W:3.707 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site