]> git.baikalelectronics.ru Git - kernel.git/commit
pci: use size stored in proc_dir_entry for proc bus files
authorDavid Rientjes <rientjes@google.com>
Thu, 27 Sep 2007 20:41:16 +0000 (13:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 22:03:17 +0000 (15:03 -0700)
commit8aafc563ce683e669f30f8e527a5416dd2e0ac09
treed975bd8a82ce1518a79284f73eec416026dc41a9
parent2890c6c2c1210afd8fe6771515f42e5c6f1b8ac0
pci: use size stored in proc_dir_entry for proc bus files

On pci_proc_attach_device(), the size of the PCI configuration space is
stored in the proc_dir_entry as the size of the file.  Thus, the procfs
interface to PCI devices should use it instead of the device directly.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/proc.c