Dmitry Baryshkov c99e755a4a PCI: Release OF node in pci_scan_device()'s error path
In pci_scan_device(), if pci_setup_device() fails for any reason, the code
will not release device's of_node by calling pci_release_of_node().  Fix
that by calling the release function.

Fixes: 98d9f30c820d ("pci/of: Match PCI devices to OF nodes dynamically")
Link: https://lore.kernel.org/r/20210124232826.1879-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
2021-03-23 10:18:49 -05:00
..
2021-02-25 09:56:08 -08:00
2021-02-25 09:56:08 -08:00
2020-08-05 18:24:16 -05:00
2020-08-05 18:24:22 -05:00
2020-07-29 14:25:18 -05:00
2020-10-22 12:41:00 -07:00
2019-07-09 07:24:53 -05:00
2020-12-16 13:42:26 -08:00
2020-12-15 16:49:59 -08:00
2020-12-15 15:11:08 -06:00
2021-02-11 15:59:19 +01:00
2021-02-25 09:56:08 -08:00
2021-02-21 14:44:44 -08:00
2021-02-11 15:59:19 +01:00
2021-02-10 16:46:29 -06:00
2020-12-15 15:11:08 -06:00
2020-08-05 18:23:14 -05:00