In pci.h in 2.6 .27.24; static inline int pci_enable_device returns error -EIO
I am writing a pci device driver, as per "LINUX DEVICE DRIVERS"
by Corbet, Alessandro et al. In Chapter 12. section entitled
"Enabling the PCI device"
" IN the probe function for the PCI driver, before the driver can access any resource (I/O region or interrupt)of the PCI device, the driver must call the function pci_enaable_device function."
In pci.h this inline function returns -EIO.
AN IO ERROR.
How does one therefore enable a PCI device???
|