public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device
@ 2004-10-04 21:26 Hanna Linder
  2004-10-04 21:41 ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: Hanna Linder @ 2004-10-04 21:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernel-janitors, greg, hannal, ralf



As pci_find_device is going away I have replaced this call with pci_get_device.
If  someone has access to an RM200 or RM300 and could test this I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
---

diff -Nrup linux-2.6.9-rc3-mm2cln/arch/mips/pci/pci-hplj.c linux-2.6.9-rc3-mm2patch/arch/mips/pci/pci-hplj.c
--- linux-2.6.9-rc3-mm2cln/arch/mips/pci/pci-hplj.c	2004-09-29 20:05:21.000000000 -0700
+++ linux-2.6.9-rc3-mm2patch/arch/mips/pci/pci-hplj.c	2004-10-04 14:20:25.307153544 -0700
@@ -118,7 +118,7 @@ void __init pcibios_fixup_irqs(void)
 	struct pci_dev *dev = NULL;
 	int slot_num;
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
 		slot_num = PCI_SLOT(dev->devfn);
 		switch (slot_num) {
 		case 2:



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

* Re: [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device
  2004-10-04 21:26 [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device Hanna Linder
@ 2004-10-04 21:41 ` Ralf Baechle
  2004-10-04 21:48   ` Hanna Linder
  2004-10-05 13:03   ` David Woodhouse
  0 siblings, 2 replies; 5+ messages in thread
From: Ralf Baechle @ 2004-10-04 21:41 UTC (permalink / raw)
  To: Hanna Linder; +Cc: linux-kernel, kernel-janitors, greg

On Mon, Oct 04, 2004 at 02:26:47PM -0700, Hanna Linder wrote:

> As pci_find_device is going away I have replaced this call with pci_get_device.

Looks good ...

> If  someone has access to an RM200 or RM300 and could test this I would appreciate it.

Except that piece of code isn't for an RM[23]00 but a HP Laserjet (yes,
that paper eating thing ;-) and hasn't seen any update or feedback from
the original submitters since the original submission, so the entire HPLJ
code is a candidate for removal ...

   Ralf

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

* Re: [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device
  2004-10-04 21:41 ` Ralf Baechle
@ 2004-10-04 21:48   ` Hanna Linder
  2004-10-05 13:03   ` David Woodhouse
  1 sibling, 0 replies; 5+ messages in thread
From: Hanna Linder @ 2004-10-04 21:48 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Hanna Linder, linux-kernel, kernel-janitors, greg

--On Monday, October 04, 2004 11:41:07 PM +0200 Ralf Baechle <ralf@linux-mips.org> wrote:

> On Mon, Oct 04, 2004 at 02:26:47PM -0700, Hanna Linder wrote:
>> If  someone has access to an RM200 or RM300 and could test this I would appreciate it.
> 
> Except that piece of code isn't for an RM[23]00 but a HP Laserjet (yes,
> that paper eating thing ;-) and hasn't seen any update or feedback from
> the original submitters since the original submission, so the entire HPLJ
> code is a candidate for removal ...
> 
>    Ralf

Ahh thanks, the comments at the top of the file confused me:

 * SNI specific PCI support for RM200/RM300.

I have no opinion on the codes deletion or not. I'm simply changing all
occurances of pci_find_device. Hopefully people will not confuse that
work with my having any familiarity with the actual devices themselves :)

Thanks a lot.

Hanna



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

* Re: [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device
  2004-10-04 21:41 ` Ralf Baechle
  2004-10-04 21:48   ` Hanna Linder
@ 2004-10-05 13:03   ` David Woodhouse
  2004-10-05 13:36     ` Ralf Baechle
  1 sibling, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2004-10-05 13:03 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Hanna Linder, linux-kernel, kernel-janitors, greg

On Mon, 2004-10-04 at 23:41 +0200, Ralf Baechle wrote:
> Except that piece of code isn't for an RM[23]00 but a HP Laserjet (yes,
> that paper eating thing ;-) and hasn't seen any update or feedback from
> the original submitters since the original submission, so the entire HPLJ
> code is a candidate for removal ...

Any idea precisely what model, and how to get it installed? 
eBay calls... :)

-- 
dwmw2


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

* Re: [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device
  2004-10-05 13:03   ` David Woodhouse
@ 2004-10-05 13:36     ` Ralf Baechle
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2004-10-05 13:36 UTC (permalink / raw)
  To: David Woodhouse
  Cc: Hanna Linder, linux-kernel, kernel-janitors, greg, linux-mips

On Tue, Oct 05, 2004 at 02:03:16PM +0100, David Woodhouse wrote:

> On Mon, 2004-10-04 at 23:41 +0200, Ralf Baechle wrote:
> > Except that piece of code isn't for an RM[23]00 but a HP Laserjet (yes,
> > that paper eating thing ;-) and hasn't seen any update or feedback from
> > the original submitters since the original submission, so the entire HPLJ
> > code is a candidate for removal ...
> 
> Any idea precisely what model, and how to get it installed? 
> eBay calls... :)

They only ever published the initial code drop.  No code maintenance since
or any kind of documentation ...  However one of the group of code submitters
back then was claiming to run Gnome with remote X display - probably because
at least back then there was no support for the printing hw and anyway,
the refresh rate of a printer is somewhat limited ;-)

As I recall the code was originally submitted by roger_twede@hp.com.

  Ralf

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

end of thread, other threads:[~2004-10-05 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 21:26 [PATCH 2.6] pci-hplj.c: replace pci_find_device with pci_get_device Hanna Linder
2004-10-04 21:41 ` Ralf Baechle
2004-10-04 21:48   ` Hanna Linder
2004-10-05 13:03   ` David Woodhouse
2004-10-05 13:36     ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox