20 Aug, 2013

4 commits

  • Use devm_*() functions to make cleanup paths simpler.

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     
  • Use devm_*() functions to make cleanup paths simpler.

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     
  • The driver core clears the driver data to NULL after device_release
    or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
    (device-core: Ensure drvdata = NULL when no driver is bound).
    Thus, it is not needed to manually clear the device driver data to NULL.

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     
  • Include in order to fix the following errors.

    drivers/mfd/pm8921-core.c:209:16: error: expected declaration specifiers or '...' before string constant
    drivers/mfd/pm8921-core.c:210:20: error: expected declaration specifiers or '...' before string constant
    drivers/mfd/pm8921-core.c:211:16: error: expected declaration specifiers or '...' before string constant
    drivers/mfd/pm8921-core.c:212:14: error: expected declaration specifiers or '...' before string constant

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     

15 Aug, 2013

14 commits


07 Aug, 2013

2 commits

  • Add CONFIG_PM_SLEEP to suspend/resume functions to fix the build
    warnings when CONFIG_PM_SLEEP is not selected. This is because
    sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used
    when the CONFIG_PM_SLEEP is enabled.

    drivers/mfd/ucb1x00-core.c:672:12: warning: 'ucb1x00_suspend' defined but not used [-Wunused-function]
    drivers/mfd/ucb1x00-core.c:704:12: warning: 'ucb1x00_resume' defined but not used [-Wunused-function]

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     
  • 'mmc_callback_data' and 'vtg' are pointers.

    Fix the following sparse warning:

    drivers/mfd/menelaus.c:445:43: warning: Using plain integer as NULL pointer
    drivers/mfd/menelaus.c:469:20: warning: Using plain integer as NULL pointer

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     

01 Aug, 2013

3 commits

  • twl4030_power_configure_scripts(), twl4030_power_configure_resources(),
    twl4030_power_probe() are used only in this file.

    Fix the following sparse warnings:

    drivers/mfd/twl4030-power.c:496:5: warning: symbol 'twl4030_power_configure_scripts' was not declared. Should it be static?
    drivers/mfd/twl4030-power.c:512:5: warning: symbol 'twl4030_power_configure_resources' was not declared. Should it be static?
    drivers/mfd/twl4030-power.c:556:5: warning: symbol 'twl4030_power_probe' was not declared. Should it be static?

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     
  • 'lpc_chipset_info' is used only in this file.

    Fix the following sparse warning:

    drivers/mfd/lpc_ich.c:216:21: warning: symbol 'lpc_chipset_info' was not declared. Should it be static?

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     
  • Casting (void *) data of max8997_pmic_dt_match is necessary,
    because variable 'data' of struct 'of_device_id' is defined as
    'const void *data'. Thus, pointer should be used instead of value.

    Signed-off-by: Jingoo Han
    Signed-off-by: Lee Jones

    Jingoo Han
     

31 Jul, 2013

17 commits