]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/dma/dmaengine.c
dmaengine: Couple DMA channels to their physical DMA device
[linux-2.6-omap-h63xx.git] / drivers / dma / dmaengine.c
index 97b329e767983172a7069687d4d8fedb1e28cee7..99c22b42bada79dbbd834bf09156e00f3fef81ff 100644 (file)
@@ -378,7 +378,7 @@ int dma_async_device_register(struct dma_device *device)
 
                chan->chan_id = chancnt++;
                chan->dev.class = &dma_devclass;
-               chan->dev.parent = NULL;
+               chan->dev.parent = device->dev;
                snprintf(chan->dev.bus_id, BUS_ID_SIZE, "dma%dchan%d",
                         device->dev_id, chan->chan_id);