Re: [PATCH] removes pci_find_device from i6300esb.c

2005-08-15 Thread Greg KH
On Tue, Aug 16, 2005 at 02:24:57AM +0200, Jiri Slaby wrote:
> This patch changes pci_find_device to pci_get_device (encapsulated in
> for_each_pci_dev) in i6300esb watchdog card with appropriate adding 
> pci_dev_put.
> 
> Generated in 2.6.13-rc5-mm1 kernel version.
> 
> Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>
> 
> This is repost, the patch was posted yet:
> 8 Aug 2005

I can't take this as the driver is only in the -mm tree, not mainline.
Andrew will have to pick it up (if it's even correct, haven't verified
it or not...)

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] removes pci_find_device from i6300esb.c

2005-08-15 Thread Jiri Slaby
This patch changes pci_find_device to pci_get_device (encapsulated in
for_each_pci_dev) in i6300esb watchdog card with appropriate adding pci_dev_put.

Generated in 2.6.13-rc5-mm1 kernel version.

Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>

This is repost, the patch was posted yet:
8 Aug 2005

diff --git a/drivers/char/watchdog/i6300esb.c b/drivers/char/watchdog/i6300esb.c
--- a/drivers/char/watchdog/i6300esb.c
+++ b/drivers/char/watchdog/i6300esb.c
@@ -368,12 +368,11 @@ static unsigned char __init esb_getdevic
  *  Find the PCI device
  */
 
-while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+for_each_pci_dev(dev)
 if (pci_match_id(esb_pci_tbl, dev)) {
 esb_pci = dev;
 break;
 }
-}
 
 if (esb_pci) {
if (pci_enable_device(esb_pci)) {
@@ -430,6 +429,7 @@ err_release:
pci_release_region(esb_pci, 0);
 err_disable:
pci_disable_device(esb_pci);
+   pci_dev_put(esb_pci);
}
 out:
return 0;
@@ -481,6 +481,7 @@ err_unmap:
pci_release_region(esb_pci, 0);
 /* err_disable: */
pci_disable_device(esb_pci);
+   pci_dev_put(esb_pci);
 /* out: */
 return ret;
 }
@@ -497,6 +498,7 @@ static void __exit watchdog_cleanup (voi
iounmap(BASEADDR);
pci_release_region(esb_pci, 0);
pci_disable_device(esb_pci);
+   pci_dev_put(esb_pci);
 }
 
 module_init(watchdog_init);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] removes pci_find_device from i6300esb.c

2005-08-15 Thread Jiri Slaby
This patch changes pci_find_device to pci_get_device (encapsulated in
for_each_pci_dev) in i6300esb watchdog card with appropriate adding pci_dev_put.

Generated in 2.6.13-rc5-mm1 kernel version.

Signed-off-by: Jiri Slaby [EMAIL PROTECTED]

This is repost, the patch was posted yet:
8 Aug 2005

diff --git a/drivers/char/watchdog/i6300esb.c b/drivers/char/watchdog/i6300esb.c
--- a/drivers/char/watchdog/i6300esb.c
+++ b/drivers/char/watchdog/i6300esb.c
@@ -368,12 +368,11 @@ static unsigned char __init esb_getdevic
  *  Find the PCI device
  */
 
-while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+for_each_pci_dev(dev)
 if (pci_match_id(esb_pci_tbl, dev)) {
 esb_pci = dev;
 break;
 }
-}
 
 if (esb_pci) {
if (pci_enable_device(esb_pci)) {
@@ -430,6 +429,7 @@ err_release:
pci_release_region(esb_pci, 0);
 err_disable:
pci_disable_device(esb_pci);
+   pci_dev_put(esb_pci);
}
 out:
return 0;
@@ -481,6 +481,7 @@ err_unmap:
pci_release_region(esb_pci, 0);
 /* err_disable: */
pci_disable_device(esb_pci);
+   pci_dev_put(esb_pci);
 /* out: */
 return ret;
 }
@@ -497,6 +498,7 @@ static void __exit watchdog_cleanup (voi
iounmap(BASEADDR);
pci_release_region(esb_pci, 0);
pci_disable_device(esb_pci);
+   pci_dev_put(esb_pci);
 }
 
 module_init(watchdog_init);
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] removes pci_find_device from i6300esb.c

2005-08-15 Thread Greg KH
On Tue, Aug 16, 2005 at 02:24:57AM +0200, Jiri Slaby wrote:
 This patch changes pci_find_device to pci_get_device (encapsulated in
 for_each_pci_dev) in i6300esb watchdog card with appropriate adding 
 pci_dev_put.
 
 Generated in 2.6.13-rc5-mm1 kernel version.
 
 Signed-off-by: Jiri Slaby [EMAIL PROTECTED]
 
 This is repost, the patch was posted yet:
 8 Aug 2005

I can't take this as the driver is only in the -mm tree, not mainline.
Andrew will have to pick it up (if it's even correct, haven't verified
it or not...)

thanks,

greg k-h
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/