powerpc: expect all devices calling dma ops to have archdata set
authorKumar Gala <galak@kernel.crashing.org>
Thu, 19 Mar 2009 03:40:52 +0000 (03:40 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Mar 2009 02:47:31 +0000 (13:47 +1100)
commit4ae0ff606e848fa4957ebf8f97e5db5fdeec27be
tree011447a606d584d867b6ba8623b886a8bd6f6a69
parentd746286c1fcb186ce16295c30d48db852ede6772
powerpc: expect all devices calling dma ops to have archdata set

Now that we set archdata for of_platform and platform devices via
platform_notify() we no longer need to special case having a NULL device
pointer or NULL archdata.  It should be a driver error if this condition
shows up and the driver should be fixed.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/dma-mapping.h