Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: ab8500: Remove ab8500_regulator_debug_init/exit()

CONFIG_REGULATOR_AB8500_DEBUG is always not defined.
ab8500_regulator_debug_init() is not called at all now,
ab8500_regulator_debug_exit() simply return 0, thus remove them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Axel Lin and committed by
Mark Brown
03187c72 a5c1a416

-27
-13
drivers/regulator/ab8500.c
··· 3071 3071 return 0; 3072 3072 } 3073 3073 3074 - static int ab8500_regulator_remove(struct platform_device *pdev) 3075 - { 3076 - int err; 3077 - 3078 - /* remove regulator debug */ 3079 - err = ab8500_regulator_debug_exit(pdev); 3080 - if (err) 3081 - return err; 3082 - 3083 - return 0; 3084 - } 3085 - 3086 3074 static struct platform_driver ab8500_regulator_driver = { 3087 3075 .probe = ab8500_regulator_probe, 3088 - .remove = ab8500_regulator_remove, 3089 3076 .driver = { 3090 3077 .name = "ab8500-regulator", 3091 3078 .owner = THIS_MODULE,
-14
include/linux/regulator/ab8500.h
··· 322 322 struct regulator_init_data *ext_regulator; 323 323 }; 324 324 325 - #ifdef CONFIG_REGULATOR_AB8500_DEBUG 326 - int ab8500_regulator_debug_init(struct platform_device *pdev); 327 - int ab8500_regulator_debug_exit(struct platform_device *pdev); 328 - #else 329 - static inline int ab8500_regulator_debug_init(struct platform_device *pdev) 330 - { 331 - return 0; 332 - } 333 - static inline int ab8500_regulator_debug_exit(struct platform_device *pdev) 334 - { 335 - return 0; 336 - } 337 - #endif 338 - 339 325 #endif