04 Jan, 2012

1 commit

  • This patch converts the drivers in drivers/power/* to use the
    module_platform_driver() macro which makes the code smaller and a bit
    simpler.

    Cc: Mike Rapoport
    Cc: Lars-Peter Clausen
    Cc: Nithish Mahalingam
    Cc: MyungJoo Ham
    Cc: Haojian Zhuang
    Cc: Balaji Rao
    Cc: Mark Brown
    Signed-off-by: Axel Lin
    Acked-by: Clifton Barnes
    Signed-off-by: Anton Vorontsov

    Axel Lin
     

25 Nov, 2011

1 commit


22 Dec, 2010

1 commit

  • flush_scheduled_work() is deprecated and scheduled to be removed.

    In battery drivers, the work can be canceled on probe failure and
    removal and should be flushed on suspend. Replace
    flush_scheduled_work() usages with direct cancels and flushes.

    Signed-off-by: Tejun Heo
    Signed-off-by: Anton Vorontsov

    Tejun Heo
     

03 May, 2010

1 commit

  • The driver isn't buildable since 2.6.32 (i.e. commit b4028437
    "Driver core: move dev_get/set_drvdata to drivers/base/dd.c"):

    CC tosa_battery.o
    tosa_battery.c: In function 'tosa_read_bat':
    tosa_battery.c:64: error: 'struct device' has no member named 'driver_data'
    tosa_battery.c: In function 'tosa_read_temp':
    tosa_battery.c:84: error: 'struct device' has no member named 'driver_data'

    Nowadays we must not access driver_data directly, use dev_get_drvdata()
    instead.

    Signed-off-by: Dmitry Eremin-Solenikov
    Signed-off-by: Andrew Morton
    Signed-off-by: Anton Vorontsov

    Dmitry Eremin-Solenikov
     

07 Aug, 2008

1 commit


01 Jul, 2008

1 commit