From: Pierre Chevalier <pierrechevalier83@gmail.com>
To: rth@twiddle.net
Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org,
Pierre Chevalier <pierrechevalier83@gmail.com>
Subject: [PATCH] arch: alpha: kernel: remove deprecated call to pci_get_slot
Date: Thu, 5 Feb 2015 21:17:55 +0000 [thread overview]
Message-ID: <1423171075-23058-1-git-send-email-pierrechevalier83@gmail.com> (raw)
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
next reply other threads:[~2015-02-05 21:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 21:17 Pierre Chevalier [this message]
2015-05-21 5:51 ` Matt Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423171075-23058-1-git-send-email-pierrechevalier83@gmail.com \
--to=pierrechevalier83@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®