PCI: rcar-host: Add support for optional regulators
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 5 Nov 2023 09:29:08 +0000 (10:29 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Thu, 14 Dec 2023 19:10:16 +0000 (19:10 +0000)
commit6797e4da2dd1e2c8dc8cec73447c77abe2a7655b
tree1f4f5ffcbf8695dd4a8d4a6a8674ff6162866f00
parentb952f96a57e6fb4528c1d6be19e941c3322f9905
PCI: rcar-host: Add support for optional regulators

The KingFisher board has regulators for miniPCIe, so enable these
optional regulators using devm. devm will automatically disable them
when the driver releases the device. Order variables in reverse-xmas
while we are here.

[kwilczynski: update style to match rest of the code]
Link: https://lore.kernel.org/linux-pci/20231105092908.3792-3-wsa+renesas@sang-engineering.com
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
drivers/pci/controller/pcie-rcar-host.c