lkml.org 
[lkml]   [2012]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/12] leds-atmel-pwm.c: Make pwmled_probe() __devinit
    Date
    Commit 892a884 (leds: convert led platform drivers to module_platform_driver)
    is omitting the section mismatch error: so change annotation of the probe
    function to __devinit instead of __init.

    Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
    Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    ---
    drivers/leds/leds-atmel-pwm.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/leds/leds-atmel-pwm.c b/drivers/leds/leds-atmel-pwm.c
    index 800243b..64ad702 100644
    --- a/drivers/leds/leds-atmel-pwm.c
    +++ b/drivers/leds/leds-atmel-pwm.c
    @@ -35,7 +35,7 @@ static void pwmled_brightness(struct led_classdev *cdev, enum led_brightness b)
    * NOTE: we reuse the platform_data structure of GPIO leds,
    * but repurpose its "gpio" number as a PWM channel number.
    */
    -static int __init pwmled_probe(struct platform_device *pdev)
    +static int __devinit pwmled_probe(struct platform_device *pdev)
    {
    const struct gpio_led_platform_data *pdata;
    struct pwmled *leds;
    --
    1.7.10


    \
     
     \ /
      Last update: 2012-04-16 11:25    [W:5.069 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site