]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite44a32d49eb164f0875c43725002b177b61533ad
tree011447a606d584d867b6ba8623b886a8bd6f6a69
parent3b6ba53d191b74caf0f76278700715461b6e6f2a
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