All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: Greg KH <gregkh@suse.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-pci@atrey.karlin.mff.cuni.cz, mhw@wittsend.com
Subject: Re: [PATCH 1/10] drivers/char: pci_find_device remove (drivers/char/ip2main.c)
Date: Sat, 10 Sep 2005 22:17:12 +0200	[thread overview]
Message-ID: <43233F48.6060406@gmail.com> (raw)
In-Reply-To: <200509101221.j8ACL8oq017230@localhost.localdomain>

Cc: mhw@wittsend.com [maintainer]

Jiri Slaby napsal(a):

>Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
>
> ip2main.c |    8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/char/ip2main.c b/drivers/char/ip2main.c
>--- a/drivers/char/ip2main.c
>+++ b/drivers/char/ip2main.c
>@@ -442,6 +442,7 @@ cleanup_module(void)
> #ifdef CONFIG_PCI
> 		if (ip2config.type[i] == PCI && ip2config.pci_dev[i]) {
> 			pci_disable_device(ip2config.pci_dev[i]);
>+			pci_dev_put(ip2config.pci_dev[i]);
> 			ip2config.pci_dev[i] = NULL;
> 		}
> #endif
>@@ -594,9 +595,10 @@ ip2_loadmain(int *iop, int *irqp, unsign
> 		case PCI:
> #ifdef CONFIG_PCI
> 			{
>-				struct pci_dev *pci_dev_i = NULL;
>-				pci_dev_i = pci_find_device(PCI_VENDOR_ID_COMPUTONE,
>-							  PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i);
>+				struct pci_dev *pci_dev_i;
>+				pci_dev_i = pci_get_device(
>+					PCI_VENDOR_ID_COMPUTONE,
>+					PCI_DEVICE_ID_COMPUTONE_IP2EX, NULL);
> 				if (pci_dev_i != NULL) {
> 					unsigned int addr;
> 
>  
>

  reply	other threads:[~2005-09-10 20:17 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-10 12:19 [PATCH 0/10] drivers/char: pci_find_device remove Jiri Slaby
2005-09-10 12:21 ` [PATCH 1/10] drivers/char: pci_find_device remove (drivers/char/ip2main.c) Jiri Slaby
2005-09-10 20:17   ` Jiri Slaby [this message]
2005-09-11 22:54     ` Jiri Slaby
2005-10-06 22:16       ` Jiri Slaby
2005-10-12 16:47         ` Jiri Slaby
2005-10-12 17:06           ` [PATCH 2.6.14-rc4] Maintainers one entry removed Jiri Slaby
2005-10-12 18:14             ` Michael Krufky
2005-10-12 18:56             ` Alan Cox
     [not found]               ` <4af2d03a0510121137h2c89ee1fw35109a41351a8b2e@mail.gmail.com>
2005-10-12 19:14                 ` Michael H. Warfield
2005-10-12 20:09                   ` Jiri Slaby
2005-10-12 20:46                     ` David S. Miller
2005-10-12 19:52                 ` Michael H. Warfield
2005-09-10 20:57   ` [PATCH 1/10] drivers/char: pci_find_device remove (drivers/char/ip2main.c) Jeff Garzik
2005-09-10 12:21 ` [PATCH 3/10] drivers/char: pci_find_device remove (drivers/char/mxser.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 9/10] drivers/char: pci_find_device remove (drivers/char/watchdog/alim7101_wdt.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 6/10] drivers/char: pci_find_device remove (drivers/char/stallion.c) Jiri Slaby
2005-09-10 20:56   ` Jeff Garzik
2005-09-10 12:21 ` [PATCH 5/10] drivers/char: pci_find_device remove (drivers/char/specialix.c) Jiri Slaby
2005-09-10 20:19   ` Jiri Slaby
2005-10-06 22:20     ` Jiri Slaby
2005-09-10 20:56   ` Jeff Garzik
2005-09-10 21:00     ` Jiri Slaby
2005-09-10 21:17       ` Greg KH
2005-09-10 21:35         ` Jiri Slaby
2005-09-10 21:41           ` Jeff Garzik
2005-09-10 22:39             ` [PATCH] (i)stallion remove Jiri Slaby
2005-09-11  0:03               ` Alan Cox
2005-09-10 23:39                 ` Matthew Wilcox
2005-09-11  0:10                   ` Alan Cox
2005-09-12  1:39               ` Peter Chubb
2005-09-12  9:22                 ` Jiri Slaby
2005-09-12  9:31                 ` Christoph Hellwig
2005-09-10 21:38         ` [PATCH 5/10] drivers/char: pci_find_device remove (drivers/char/specialix.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 2/10] drivers/char: pci_find_device remove (drivers/char/istallion.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 7/10] drivers/char: pci_find_device remove (drivers/char/sx.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 4/10] drivers/char: pci_find_device remove (drivers/char/rocket.c) Jiri Slaby
2005-09-10 20:56   ` Jeff Garzik
2005-09-10 12:21 ` [PATCH 8/10] drivers/char: pci_find_device remove (drivers/char/watchdog/alim1535_wdt.c) Jiri Slaby
2005-09-10 12:21 ` [PATCH 10/10] drivers/char: pci_find_device remove (drivers/char/watchdog/i8xx_tco.c) Jiri Slaby
2005-09-10 20:15   ` Jiri Slaby
2005-09-10 20:44     ` Nils Faerber
2005-09-10 20:58   ` Jeff Garzik
2005-09-10 22:00     ` Matthieu CASTET

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=43233F48.6060406@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    --cc=mhw@wittsend.com \
    /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 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.