diff options
Diffstat (limited to 'arch/sparc64/kernel/pci_sun4v.c')
-rw-r--r-- | arch/sparc64/kernel/pci_sun4v.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c index 0c0895202970..b97c81ba8835 100644 --- a/arch/sparc64/kernel/pci_sun4v.c +++ b/arch/sparc64/kernel/pci_sun4v.c | |||
@@ -843,38 +843,8 @@ static unsigned int pci_sun4v_irq_build(struct pci_pbm_info *pbm, | |||
843 | unsigned int devino) | 843 | unsigned int devino) |
844 | { | 844 | { |
845 | u32 devhandle = pbm->devhandle; | 845 | u32 devhandle = pbm->devhandle; |
846 | int pil; | ||
847 | 846 | ||
848 | pil = 5; | 847 | return sun4v_build_irq(devhandle, devino, IBF_PCI); |
849 | if (pdev) { | ||
850 | switch ((pdev->class >> 16) & 0xff) { | ||
851 | case PCI_BASE_CLASS_STORAGE: | ||
852 | pil = 5; | ||
853 | break; | ||
854 | |||
855 | case PCI_BASE_CLASS_NETWORK: | ||
856 | pil = 6; | ||
857 | break; | ||
858 | |||
859 | case PCI_BASE_CLASS_DISPLAY: | ||
860 | pil = 9; | ||
861 | break; | ||
862 | |||
863 | case PCI_BASE_CLASS_MULTIMEDIA: | ||
864 | case PCI_BASE_CLASS_MEMORY: | ||
865 | case PCI_BASE_CLASS_BRIDGE: | ||
866 | case PCI_BASE_CLASS_SERIAL: | ||
867 | pil = 10; | ||
868 | break; | ||
869 | |||
870 | default: | ||
871 | pil = 5; | ||
872 | break; | ||
873 | }; | ||
874 | } | ||
875 | BUG_ON(PIL_RESERVED(pil)); | ||
876 | |||
877 | return sun4v_build_irq(devhandle, devino, pil, IBF_PCI); | ||
878 | } | 848 | } |
879 | 849 | ||
880 | static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource) | 850 | static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource) |