David Gibson 4782a8bb81 spapr: Clean up device node name generation for PCI devices
spapr_populate_pci_child_dt() adds a 'name' property to the device tree
node for PCI devices.  This is never necessary for a flattened device tree,
it is implicit in the name added when the node is constructed.  In fact
anything we do add to a 'name' property will be overwritten with something
derived from the structural name in the guest firmware (but in fact it is
exactly the same bytes).

So, remove that.  In addition, pci_get_node_name() is very simple, so fold
it into its (also simple) sole caller spapr_create_pci_child_dt().

While we're there rename pci_find_device_name() to the shorter and more
accurate dt_name_from_class().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
2019-06-12 10:41:49 +10:00
..
2019-03-07 21:45:53 +01:00
2019-06-06 12:52:31 +01:00
2019-06-04 15:22:22 +02:00
2019-03-07 21:45:53 +01:00
2019-03-07 21:45:53 +01:00
2019-03-25 17:01:10 +00:00
2019-06-04 15:22:22 +02:00
2019-03-07 21:45:53 +01:00
2019-06-03 14:03:01 +02:00
2019-06-06 14:09:14 +01:00
2019-05-29 18:00:57 -04:00
2019-03-07 21:45:53 +01:00
2019-06-06 14:09:14 +01:00
2019-03-07 21:45:53 +01:00
2019-03-08 16:31:34 +00:00