Skip to content

Commit 2d8ebee

Browse files
KunWuChanmpe
authored andcommitted
powerpc/pseries/pci: Code cleanup
This part was commented in about 19 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 66d8e64 commit 2d8ebee

File tree

1 file changed

+0
-27
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+0
-27
lines changed

arch/powerpc/platforms/pseries/pci.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,6 @@
1818
#include <asm/pci.h>
1919
#include "pseries.h"
2020

21-
#if 0
22-
void pcibios_name_device(struct pci_dev *dev)
23-
{
24-
struct device_node *dn;
25-
26-
/*
27-
* Add IBM loc code (slot) as a prefix to the device names for service
28-
*/
29-
dn = pci_device_to_OF_node(dev);
30-
if (dn) {
31-
const char *loc_code = of_get_property(dn, "ibm,loc-code",
32-
NULL);
33-
if (loc_code) {
34-
int loc_len = strlen(loc_code);
35-
if (loc_len < sizeof(dev->dev.name)) {
36-
memmove(dev->dev.name+loc_len+1, dev->dev.name,
37-
sizeof(dev->dev.name)-loc_len-1);
38-
memcpy(dev->dev.name, loc_code, loc_len);
39-
dev->dev.name[loc_len] = ' ';
40-
dev->dev.name[sizeof(dev->dev.name)-1] = '\0';
41-
}
42-
}
43-
}
44-
}
45-
DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pcibios_name_device);
46-
#endif
47-
4821
#ifdef CONFIG_PCI_IOV
4922
#define MAX_VFS_FOR_MAP_PE 256
5023
struct pe_map_bar_entry {

0 commit comments

Comments
 (0)