edac: add edac_device_alloc_index()
authorHarry Ciao <qingtao.cao@windriver.com>
Wed, 17 Jun 2009 23:27:59 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:56 +0000 (13:03 -0700)
commit1dc9b70d7d48abd8a5c6f83021f38992f3b5a77f
treef4e3544c20b432d727a1c96f80eafb716a0f5966
parent2a9036afffb3a174e980f90eb507c5aea6b540f6
edac: add edac_device_alloc_index()

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

[akpm@linux-foundation.org: cleanups]
Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Cc: Doug Thompson <norsk5@yahoo.com>
Cc: Michael Ellerman <michael@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kumar Gala <galak@gate.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/amd8111_edac.c
drivers/edac/edac_core.h
drivers/edac/edac_device.c