regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id
commit1bdac6c2fed0fc0789b9c29d7f5e1ab2b200182a
authorStephan Gerhold <stephan@gerhold.net>
Wed, 6 Nov 2019 17:31:25 +0000 (6 18:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:19:43 +0000 (23 08:19 +0100)
tree9643a5742be6e49e3460017d7a6db8f17d3f1ab7
parentf3a98887b15848a7fbae993e746bf6bc676459d5
regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id

commit 458ea3ad033fc86e291712ce50cbe60c3428cf30 upstream.

Those regulators are not actually supported by the AB8500 regulator
driver. There is no ab8500_regulator_info for them and no entry in
ab8505_regulator_match.

As such, they cannot be registered successfully, and looking them
up in ab8505_regulator_match causes an out-of-bounds array read.

Fixes: 547f384f33db ("regulator: ab8500: add support for ab8505")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191106173125.14496-2-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/regulator/ab8500.h