regulator: Drop unnecessary of_match_device() calls
authorRob Herring <robh@kernel.org>
Tue, 17 Oct 2023 20:35:06 +0000 (15:35 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 17 Oct 2023 20:38:46 +0000 (21:38 +0100)
commita8b4962fbd004d7d4fcbf01ce7dc27fcef406199
treeb4b10dcb18ec0c77e9cde100b32e9277cc7be6d3
parent1096f9fa2be18a1340d1299b4c4329af211076e7
regulator: Drop unnecessary of_match_device() calls

If probe is reached, we've already matched the device and in the case of
DT matching, the struct device_node pointer will be set. Therefore, there
is no need to call of_match_device() in probe.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231017203507.2699826-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9210-regulator.c
drivers/regulator/max1586.c
drivers/regulator/tps51632-regulator.c