staging: rts5208: rtsx: Replace depracated MSI API
Subsystems (2)
PATCH 1/1 staging: rts5208: rtsx: Replace depracated MSI API
Replace depracated pci_enable_msi with pci_alloc_irq_vectors.
Signed-off-by Suraj Upadhyay <[email protected]>
--- drivers/staging/rts5208/rtsx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rts5208/rtsx.c +2 -2
@@ -310,7 +310,7 @@ static int __maybe_unused rtsx_resume(struct device *dev_d)pci_set_master (pci);if (chip->msi_en) { -if (pci_enable_msi (pci) <0 ) +if (pci_alloc_irq_vectors (dev,1 ,1 ,PCI_IRQ_MSI ) <0 ) chip->msi_en =0 ; }
@@ -881,7 +881,7 @@ static int rtsx_probe(struct pci_dev *pci,dev_info (&pci->dev,"pci->irq = %d\n" , pci->irq);if (dev->chip->msi_en) { -if (pci_enable_msi (pci) <0 ) +if (pci_alloc_irq_vectors (dev,1 ,1 ,PCI_IRQ_MSI ) <0 ) dev->chip->msi_en =0 ; }
Signature · 1 line
2.17.1
Quoted 12 lines · Suraj Upadhyay
Replace depracated
pci_enable_msiwithpci_alloc_irq_vectors.Signed-off-by Suraj Upadhyay <[email protected]>--- drivers/staging/rts5208/rtsx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/rts5208/rtsx.c +0
-0
drivers/staging/rts5208/rtsx.c static int __maybe_unused rtsx_resume(struct device *dev_d) · line 313
Quoted 5 lines
drivers/staging/rts5208/rtsx.c +1
-1@@ -310,7 +310,7 @@ static int __maybe_unused rtsx_resume(struct device *dev_d)pci_set_master (pci);if (chip->msi_en) { -if (pci_enable_msi (pci) <0 ) +if (pci_alloc_irq_vectors (dev,1 ,1 ,PCI_IRQ_MSI ) <0 )
The conversion is buggy, It changes variable name.
drivers/staging/rts5208/rtsx.c static int rtsx_probe(struct pci_dev *pci, · line 884
Quoted 9 lines
drivers/staging/rts5208/rtsx.c +1
-1chip->msi_en =0 ; }@@ -881,7 +881,7 @@ static int rtsx_probe(struct pci_dev *pci,dev_info (&pci->dev,"pci->irq = %d\n" , pci->irq);if (dev->chip->msi_en) { -if (pci_enable_msi (pci) <0 ) +if (pci_alloc_irq_vectors (dev,1 ,1 ,PCI_IRQ_MSI ) <0 )
This has the same mistake.
Quoted 6 lines
drivers/staging/rts5208/rtsx.c +0
-0dev->chip->msi_en =0 ; }Signature · 1 line
2.17.1
Resending this patch.
I hope this wasn't an annoyance.
Thanks,
Suraj Upadhyay