]> Gentwo Git Trees - linux/.git/commit
PCI: j721e: Use devm_clk_get_optional_enabled() to get and enable the clock
authorAnand Moon <linux.amoon@gmail.com>
Tue, 28 Oct 2025 15:42:23 +0000 (21:12 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Nov 2025 18:21:42 +0000 (12:21 -0600)
commit6fad11c61d0dbf87601ab9e2e37cba7a9a427f7b
treedccc33412ee59ee9fcc3feee7b947c4a0edf554d
parent3a8660878839faadb4f1a6dd72c3179c1df56787
PCI: j721e: Use devm_clk_get_optional_enabled() to get and enable the clock

Use devm_clk_get_optional_enabled() helper instead of calling
devm_clk_get_optional() and then clk_prepare_enable().

Assign the result of devm_clk_get_optional_enabled() directly to
pcie->refclk to avoid using a local 'clk' variable.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://patch.msgid.link/20251028154229.6774-2-linux.amoon@gmail.com
drivers/pci/controller/cadence/pci-j721e.c