On Tuesday, December 21, 2004 2:05 pm, Jesse Barnes wrote: > On Tuesday, December 21, 2004 1:46 pm, Greg KH wrote: > > You are passing the wrong things around :) > > > > A struct pci_bus is a struct class_device, not a struct device. I think > > you need to rethink your goal of putting the files into the pci device > > directory, or just put the files into the proper /sys/class/pci_bus/* > > directory as your code assumes is happening. > > Something like this then? I added bin file support to class.c and use that > instead from probe.c. I also fixed the container_of stuff in pci-sysfs.c. Here it is w/o the ia64 stuff. That way people can buy off on the API and not worry about the platform stuff. I can send that to Tony separately if there's agreement on this part. I'd like to create a symlink from /sys/class/pci_bus//legacy_* to /sys/devices/pci/legacy_* too, how do I do that? drivers/base/class.c | 16 ++++++++++ drivers/pci/pci-sysfs.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/pci/probe.c | 39 ++++++++++++++++++++++++++ include/linux/pci.h | 2 + 4 files changed, 127 insertions(+) Thanks, Jesse