lkml.org 
[lkml]   [2011]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] power_supply: Fix annotation for s3c_adc_battery_probe()
    Date
    A probe() function is used at device init time rather than system init time.

    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    ---
    drivers/power/s3c_adc_battery.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/power/s3c_adc_battery.c b/drivers/power/s3c_adc_battery.c
    index d36c289..a675e31 100644
    --- a/drivers/power/s3c_adc_battery.c
    +++ b/drivers/power/s3c_adc_battery.c
    @@ -266,7 +266,7 @@ static irqreturn_t s3c_adc_bat_charged(int irq, void *dev_id)
    return IRQ_HANDLED;
    }

    -static int __init s3c_adc_bat_probe(struct platform_device *pdev)
    +static int __devinit s3c_adc_bat_probe(struct platform_device *pdev)
    {
    struct s3c_adc_client *client;
    struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data;
    --
    1.7.5.1


    \
     
     \ /
      Last update: 2011-05-24 12:49    [W:0.017 / U:5.540 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site