lkml.org 
[lkml]   [2012]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] leds-mc13783: set platform data to NULL at mc13783_led_remove
    Date
    the platform_set_drvdata (pdev, NULL) to be set at the remove of the
    driver, as we have set the platform data to led at probe.

    Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
    ---
    drivers/leds/leds-mc13783.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c
    index 4cc6a2e..6515c11 100644
    --- a/drivers/leds/leds-mc13783.c
    +++ b/drivers/leds/leds-mc13783.c
    @@ -372,6 +372,7 @@ static int __devexit mc13783_led_remove(struct platform_device *pdev)

    mc13xxx_unlock(dev);

    + platform_set_drvdata(pdev, NULL);
    kfree(led);
    return 0;
    }
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2012-07-02 11:21    [W:0.021 / U:0.984 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site