powerpc/macio: Add devres support to macio_device
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 1 Dec 2009 14:36:26 +0000 (14:36 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Dec 2009 05:02:51 +0000 (16:02 +1100)
commit7fb19ea054a0cdf1a4d935e68d51bde4d3725414
treeec4882255440c93c8104e59efaceffae98f379d3
parente15a113700324f7fdcee95589875daed2b98a2fe
powerpc/macio: Add devres support to macio_device

This adds some basic devres support. When enabled via macio_enable_devres()
resources requested by drivers will be automatically released.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/macio.h
drivers/macintosh/macio_asic.c