]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mfd: sec-core: Return gracefully instead of BUG() if device cannot match
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 29 Jan 2019 11:25:53 +0000 (12:25 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Feb 2019 10:43:15 +0000 (10:43 +0000)
commit83761f9663a228f148ee318cc0531035cfa5654c
treeb896a5e2052a844e48e4b0e76da4a06d01b3e1bf
parent9f208eca4f2faa38def458f663ec142a0b6f451b
mfd: sec-core: Return gracefully instead of BUG() if device cannot match

Replace impossible BUG() in probe with a proper return.  This can be
triggered only in case of a clear bug (e.g. adding broken half-support
for new S2MPSXX flavor) but BUG() is discouraged and the boot process
can actually try to continue.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c