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

mfd: ab8500: Drop bm disable parameter

Nobody is passing the module parameter to disable the
battery management portions so just drop this parameter.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Linus Walleij and committed by
Lee Jones
a98688d2 cb9e880a

+6 -14
+6 -14
drivers/mfd/ab8500-core.c
··· 120 120 static DEFINE_SPINLOCK(on_stat_lock); 121 121 static u8 turn_on_stat_mask = 0xFF; 122 122 static u8 turn_on_stat_set; 123 - static bool no_bm; /* No battery management */ 124 - /* 125 - * not really modular, but the easiest way to keep compat with existing 126 - * bootargs behaviour is to continue using module_param here. 127 - */ 128 - module_param(no_bm, bool, S_IRUGO); 129 123 130 124 #define AB9540_MODEM_CTRL2_REG 0x23 131 125 #define AB9540_MODEM_CTRL2_SWDBBRSTN_BIT BIT(2) ··· 1248 1254 if (ret) 1249 1255 return ret; 1250 1256 1251 - if (!no_bm) { 1252 - /* Add battery management devices */ 1253 - ret = mfd_add_devices(ab8500->dev, 0, ab8500_bm_devs, 1254 - ARRAY_SIZE(ab8500_bm_devs), NULL, 1255 - 0, ab8500->domain); 1256 - if (ret) 1257 - dev_err(ab8500->dev, "error adding bm devices\n"); 1258 - } 1257 + /* Add battery management devices */ 1258 + ret = mfd_add_devices(ab8500->dev, 0, ab8500_bm_devs, 1259 + ARRAY_SIZE(ab8500_bm_devs), NULL, 1260 + 0, ab8500->domain); 1261 + if (ret) 1262 + dev_err(ab8500->dev, "error adding bm devices\n"); 1259 1263 1260 1264 if (((is_ab8505(ab8500) || is_ab9540(ab8500)) && 1261 1265 ab8500->chip_id >= AB8500_CUT2P0) || is_ab8540(ab8500))