edac: Add edac_pci_alloc_index()
authorHarry Ciao <qingtao.cao@windriver.com>
Thu, 2 Apr 2009 23:58:47 +0000 (16:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:05:03 +0000 (19:05 -0700)
commit8641a3845d066f841ca591ac1c480b13bea7d849
tree2d9a496c18e1b9838022816adfa3e9cf72386617
parent697dab6484fad0e636b0677c010b15cc449d1b9b
edac: Add edac_pci_alloc_index()

Add edac_pci_alloc_index(), because for MAPLE platform there may exist
several EDAC driver modules that could make use of edac_pci_ctl_info
structure at the same time.  The index allocation for these structures
should be taken care of by EDAC core.

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Cc: Doug Thompson <norsk5@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/edac_core.h
drivers/edac/edac_pci.c