Re: [RFT 2.6.9-rc1 alpha sys_alcor.c] [1/2] convert pci_find_device to pci_get_device

From: Greg KH
Date: Mon Sep 13 2004 - 22:43:08 EST


On Mon, Sep 13, 2004 at 07:01:16PM -0700, Richard Henderson wrote:
> On Mon, Sep 13, 2004 at 04:37:13PM -0700, Hanna Linder wrote:
> > Here is a very simple patch to convert pci_find_device call to pci_get_device.
> > As I don't have an alpha box or cross compiler could someone (wli- wink wink)
> > please verify it compiles and doesn't break anything, thanks a lot.
>
> Presumably the intent is to eventually remove pci_find_device?

That is the intent.

> These routines run at the very beginning of bootup; there cannot
> possibly be any races.

I agree there isn't any races here, we just need to get rid of
pci_find_device() as people use it in an unsafe manner in lots of
different places.

thanks,

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