Re: [PATCH] gpio: handle missing regmap
From: Matti Vaittinen
Date: Wed Apr 08 2026 - 03:46:57 EST
On 08/04/2026 10:18, Bartosz Golaszewski wrote:
On Tue, 07 Apr 2026 15:41:48 +0300, Matti Vaittinen wrote:
Currently the probe does not check whether getting the regmap succeeded.
This can cause crash when regmap is used, if it wasn't successfully
obtained. Failing to get the regmap is unlikely, especially since this
driver is expected to be kicked by the MFD driver only after registering
the regmap - but it is still better to handle this gracefully.
[...]
The subject should have been: "gpio: bd72720: handle missing regmap".
Indeed!
I fixed it and queued the patch.
Thanks a bunch :)
Yours,
-- Matti
---
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~