Jan Kiszka 93c9a7f879 PCI: Clean up resource allocation in devm_of_pci_get_host_bridge_resources()
Instead of first allocating and then freeing memory for struct resource in
case we cannot parse a PCI resource from the device tree, work against a
local struct and kmemdup() it when we decide to go with it.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
2018-06-19 16:52:42 -05:00
..
2018-06-06 16:10:10 -05:00
2018-04-04 13:28:40 -05:00
2018-05-10 17:56:02 -05:00
2018-05-09 06:57:18 +02:00
2018-03-19 14:20:43 -05:00
2018-01-18 12:55:24 -06:00
2018-03-19 14:20:43 -05:00
2018-06-12 16:19:22 -07:00
2018-06-04 12:08:06 -05:00
2018-06-07 12:45:58 -07:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-06-12 16:19:22 -07:00
2018-06-07 12:45:58 -07:00
2018-06-06 16:10:27 -05:00
2018-06-06 16:10:18 -05:00
2018-05-16 07:23:35 +02:00
2018-06-06 16:10:51 -05:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-04-04 13:27:45 -05:00
2018-03-19 14:20:43 -05:00
2018-02-01 11:40:07 -06:00
2018-04-06 18:31:06 -07:00
2018-03-19 14:20:43 -05:00