On Thu, 3 Oct 2002, Keith Whitwell wrote:
> 
> Would the appropriate place to call 'pci_enable_device' be just after a 
> successful call to (deprecated) pci_find_slot() ?

That should work (but you should check for failure on the find, instead 
of potentially trying to pass in a NULL pointer to pci_enable_device()).

In the long run it would be even better to not try to "find"  the device
by hand, but just tell the system what kind of device you want to drive,
and the system will enumerate each and every such device for you
regardless of where they are (and then you can obviously try to match it
against whatever info X gave you).

That way the code should actually work correctly even if the graphics card 
is somewhere unexpected.

                        Linus



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to