Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374651
b: refs/heads/master
c: 4e82f5d
h: refs/heads/master
i:
  374649: 50510b8
  374647: 46c7779
v: v3
  • Loading branch information
Andy Shevchenko authored and Vinod Koul committed Apr 15, 2013
1 parent f3f6686 commit 12f1876
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b2e98bc1e35ebe1f65c3db62c8317096ad7f2c8
refs/heads/master: 4e82f5ddd1e46fadc3a3c5aafdaec2d1416de9fe
6 changes: 6 additions & 0 deletions trunk/drivers/dma/dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
#include <linux/rculist.h>
#include <linux/idr.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/acpi_dma.h>
#include <linux/of_dma.h>

static DEFINE_MUTEX(dma_list_mutex);
Expand Down Expand Up @@ -564,6 +566,10 @@ struct dma_chan *dma_request_slave_channel(struct device *dev, char *name)
if (dev->of_node)
return of_dma_request_slave_channel(dev->of_node, name);

/* If device was enumerated by ACPI get slave info from here */
if (ACPI_HANDLE(dev))
return acpi_dma_request_slave_chan_by_name(dev, name);

return NULL;
}
EXPORT_SYMBOL_GPL(dma_request_slave_channel);
Expand Down

0 comments on commit 12f1876

Please sign in to comment.