mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
PCI: mediatek-gen3: Fix incorrectly skipped pwrctrl error message
When pwrctrl integration was added, the error message for
pci_pwrctrl_create_devices() failure was incorrectly added after the goto
statement, causing it to be skipped.
Move the goto statement after the dev_err_probe() call so that the
error message actually gets printed (or saved if probe is deferred).
Fixes: 1a152e2194 ("PCI: mediatek-gen3: Integrate new pwrctrl API")
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/all/adjNaKB5KGpl6qIp@stanley.mountain/
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Hans Zhang <18255117159@163.com>
Link: https://patch.msgid.link/20260512103347.1751080-1-wenst@chromium.org
This commit is contained in:
parent
d39d55d741
commit
8ba433753d
|
|
@ -1242,8 +1242,8 @@ static int mtk_pcie_probe(struct platform_device *pdev)
|
|||
|
||||
err = pci_pwrctrl_create_devices(pcie->dev);
|
||||
if (err) {
|
||||
goto err_tear_down_irq;
|
||||
dev_err_probe(dev, err, "failed to create pwrctrl devices\n");
|
||||
goto err_tear_down_irq;
|
||||
}
|
||||
|
||||
err = mtk_pcie_setup(pcie);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user