From: Michael Buesch Date: Fri, 11 Apr 2008 09:59:00 +0000 (+0200) Subject: ssb: Fix usage of struct device used for DMAing X-Git-Tag: v2.6.25~4^2~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac58469f13028e1eb97f8bc7b0fca5072591d8d;p=pandora-kernel.git ssb: Fix usage of struct device used for DMAing This fixes DMA on architectures where DMA is nontrivial, like PPC64. We must use the host-device's (PCI) struct device for any DMA operation instead of the SSB device. For this we add a new struct device pointer to the SSB device structure that will always point to the right device for DMAing. Without this patch b43 and b44 drivers won't work on complex-DMA architectures, that for example need dev->archdata for DMA operations. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville --- Reading git-diff-tree failed