]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dmaengine: use idr for registering dma device numbers
authorDan Williams <dan.j.williams@intel.com>
Tue, 6 Jan 2009 18:38:21 +0000 (11:38 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 6 Jan 2009 18:38:21 +0000 (11:38 -0700)
commit864498aaa9fef69ee166da023d12413a7776342d
tree023d6bfc15ba192c1a92caab3ff7525a84e409fc
parent41d5e59c1299f27983977bcfe3b360600996051c
dmaengine: use idr for registering dma device numbers

This brings some predictability to dma device numbers, i.e. an rmmod/insmod
cycle may now result in /sys/class/dma/dma0chan0 being restored rather than
/sys/class/dma/dma1chan0 appearing.

Cc: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmaengine.c
include/linux/dmaengine.h