]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commitcd68602f36ceb65b24a9abcae10ca04a933c07fd
treed975bd8a82ce1518a79284f73eec416026dc41a9
parent7f785763660e75c9eddaddea3d618696af4ae3a2
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