[PATCH 1/2] ttm: Include the 'struct dev' when using the DMA API.

2011-03-08 Thread Konrad Rzeszutek Wilk
This makes the accounting when using 'debug_dma_dump_mappings()' and CONFIG_DMA_API_DEBUG=y be assigned to the correct device instead of 'fallback'. No functional change - just cosmetic. At first it seems that we just need to keep a copy of 'struct device' in the struct ttm_bo_device and use that

[PATCH 1/2] ttm: Include the 'struct dev' when using the DMA API.

2011-03-08 Thread Konrad Rzeszutek Wilk
This makes the accounting when using 'debug_dma_dump_mappings()' and CONFIG_DMA_API_DEBUG=y be assigned to the correct device instead of 'fallback'. No functional change - just cosmetic. At first it seems that we just need to keep a copy of 'struct device' in the struct ttm_bo_device and use that