LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] arch: alpha: kernel: remove deprecated call to pci_get_slot
@ 2015-02-05 21:17 Pierre Chevalier
  2015-05-21  5:51 ` Matt Turner
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Chevalier @ 2015-02-05 21:17 UTC (permalink / raw)
  To: rth; +Cc: linux-alpha, linux-kernel, Pierre Chevalier

According to Documentation/PCI/pci.txt, pci_get_slot has been
superseded by pci_get_domain_bus_and_slot.

Signed-off-by: Pierre Chevalier <pierrechevalier83@gmail.com>
---
 arch/alpha/kernel/sys_miata.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/alpha/kernel/sys_miata.c b/arch/alpha/kernel/sys_miata.c
index d5b9776..7b98b40 100644
--- a/arch/alpha/kernel/sys_miata.c
+++ b/arch/alpha/kernel/sys_miata.c
@@ -182,7 +182,8 @@ miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 
 	if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) {
 		u8 irq=0;
-		struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7);
+		struct pci_dev *pdev =
+			pci_get_domain_bus_and_slot(dev->bus, dev->devfn & ~7);
 		if(pdev == NULL || pci_read_config_byte(pdev, 0x40,&irq) != PCIBIOS_SUCCESSFUL) {
 			pci_dev_put(pdev);
 			return -1;
-- 
2.2.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arch: alpha: kernel: remove deprecated call to pci_get_slot
  2015-02-05 21:17 [PATCH] arch: alpha: kernel: remove deprecated call to pci_get_slot Pierre Chevalier
@ 2015-05-21  5:51 ` Matt Turner
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2015-05-21  5:51 UTC (permalink / raw)
  To: Pierre Chevalier; +Cc: Richard Henderson, linux-alpha, LKML

On Thu, Feb 5, 2015 at 1:17 PM, Pierre Chevalier
<pierrechevalier83@gmail.com> wrote:
> According to Documentation/PCI/pci.txt, pci_get_slot has been
> superseded by pci_get_domain_bus_and_slot.
>
> Signed-off-by: Pierre Chevalier <pierrechevalier83@gmail.com>
> ---
>  arch/alpha/kernel/sys_miata.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/alpha/kernel/sys_miata.c b/arch/alpha/kernel/sys_miata.c
> index d5b9776..7b98b40 100644
> --- a/arch/alpha/kernel/sys_miata.c
> +++ b/arch/alpha/kernel/sys_miata.c
> @@ -182,7 +182,8 @@ miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
>
>         if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) {
>                 u8 irq=0;
> -               struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7);
> +               struct pci_dev *pdev =
> +                       pci_get_domain_bus_and_slot(dev->bus, dev->devfn & ~7);

Given that pci_get_domain_bus_and_slot takes three arguments, I don't
think this compiles.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-21  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-05 21:17 [PATCH] arch: alpha: kernel: remove deprecated call to pci_get_slot Pierre Chevalier
2015-05-21  5:51 ` Matt Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).