* [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning
@ 2008-07-26 19:44 Michael Borisov
2008-07-27 0:44 ` David Miller
2008-07-27 3:12 ` Matthew Wilcox
0 siblings, 2 replies; 3+ messages in thread
From: Michael Borisov @ 2008-07-26 19:44 UTC (permalink / raw)
To: kernel-janitors
This patch fixes the following compile warning:
drivers/isdn/hisax/telespci.c: In function ‘setup_telespci’:
drivers/isdn/hisax/telespci.c:303: warning: ‘pci_find_device’ is
deprecated (declared at include/linux/pci.h:535)
Signed-off-by: Michael Borisov <niro@tut.by>
---
diff --git a/drivers/isdn/hisax/telespci.c
b/drivers/isdn/hisax/telespci.c
index 28b08de..9ed0862 100644
--- a/drivers/isdn/hisax/telespci.c
+++ b/drivers/isdn/hisax/telespci.c
@@ -300,7 +300,8 @@ setup_telespci(struct IsdnCard *card)
if (cs->typ != ISDN_CTYPE_TELESPCI)
return (0);
- if ((dev_tel = pci_find_device (PCI_VENDOR_ID_ZORAN,
PCI_DEVICE_ID_ZORAN_36120, dev_tel))) {
+ if ((dev_tel = pci_get_device(PCI_VENDOR_ID_ZORAN,
+ PCI_DEVICE_ID_ZORAN_36120, dev_tel))) {
if (pci_enable_device(dev_tel))
return(0);
cs->irq = dev_tel->irq;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning
2008-07-26 19:44 [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning Michael Borisov
@ 2008-07-27 0:44 ` David Miller
2008-07-27 3:12 ` Matthew Wilcox
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2008-07-27 0:44 UTC (permalink / raw)
To: kernel-janitors
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 696 bytes --]
From: Michael Borisov <niro@tut.by>
Date: Sat, 26 Jul 2008 22:44:34 +0300
> This patch fixes the following compile warning:
>
> drivers/isdn/hisax/telespci.c: In function âsetup_telespciâ:
> drivers/isdn/hisax/telespci.c:303: warning: âpci_find_deviceâ is
> deprecated (declared at include/linux/pci.h:535)
>
> Signed-off-by: Michael Borisov <niro@tut.by>
If you "get" the device, you're going to have to "put"
it somewhere down the line to release the reference
count.
That's why this hasn't been fixed yet, it's not such
a trivial matter to convert.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¤z¹ÞøÚ+h®ÏâØ^nr¡ö¦zË\x1aëh¨èÚ&£ûàz¿äz¹Þú+Ê+zf£¢·h§~Ûiÿÿïêÿêçz_è®\x0fæj:+v¨þ)ߣøm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning
2008-07-26 19:44 [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning Michael Borisov
2008-07-27 0:44 ` David Miller
@ 2008-07-27 3:12 ` Matthew Wilcox
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 2008-07-27 3:12 UTC (permalink / raw)
To: kernel-janitors
On Sat, Jul 26, 2008 at 05:44:48PM -0700, David Miller wrote:
> That's why this hasn't been fixed yet, it's not such
> a trivial matter to convert.
And it should really be converted to the driver model (see
Documentation/PCI/pci.txt)
I think jgarzik has a bunch of these queued up somewhere for people to
test.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-27 3:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-26 19:44 [PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning Michael Borisov
2008-07-27 0:44 ` David Miller
2008-07-27 3:12 ` Matthew Wilcox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.