Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240126025030.577795-1-chentao@kylinos.cn

authored by

Kunwu Chan and committed by
Michael Ellerman
2d8ebee0 66d8e646

-27
-27
arch/powerpc/platforms/pseries/pci.c
··· 18 18 #include <asm/pci.h> 19 19 #include "pseries.h" 20 20 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 - 48 21 #ifdef CONFIG_PCI_IOV 49 22 #define MAX_VFS_FOR_MAP_PE 256 50 23 struct pe_map_bar_entry {