All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] replace deprecated pci_find_device
@ 2006-08-21 15:44 Stephan Sperber
  2006-08-21 16:47 ` walter harms
  2006-08-22 21:51 ` trem
  0 siblings, 2 replies; 3+ messages in thread
From: Stephan Sperber @ 2006-08-21 15:44 UTC (permalink / raw)
  To: kernel-janitors

Hello everybody!
The included patch is my first try, so be critical :)
On the TODO list is mentioned that pci_find_device should be replaced with 
pci_get_dev. It also mentions that after shutting down the device a 
pci_dev_put(*dev) is needed to free the used memory again. And here is the 
problem I have. I don't see a "shutdownfunction" in ip2main.c nor in the 
other ip2 related files. Or did I miss something?

Thank you for any input on this topic.

Stephan

diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c
index 7907ae8..11b4f25 100644
--- a/drivers/char/ip2/ip2main.c
+++ b/drivers/char/ip2/ip2main.c
@@ -589,7 +589,7 @@ ip2_loadmain(int *iop, int *irqp, unsign
 #ifdef CONFIG_PCI
 			{
 				struct pci_dev *pci_dev_i = NULL;
-				pci_dev_i = pci_find_device(PCI_VENDOR_ID_COMPUTONE,
+				pci_dev_i = pci_get_device(PCI_VENDOR_ID_COMPUTONE,
 							  PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i);
 				if (pci_dev_i != NULL) {
 					unsigned int addr;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2006-08-22 21:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-21 15:44 [KJ] replace deprecated pci_find_device Stephan Sperber
2006-08-21 16:47 ` walter harms
2006-08-22 21:51 ` trem

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.