Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273885
b: refs/heads/master
c: 7703eac
h: refs/heads/master
i:
  273883: 311e6e1
v: v3
  • Loading branch information
Russell King - ARM Linux authored and Vinod Koul committed Sep 5, 2011
1 parent a361c93 commit 3981700
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 503473ac2a3952e6af254b0769fe788a67d797e5
refs/heads/master: 7703eac96abd119dcfbb04f287a5127462d18269
10 changes: 9 additions & 1 deletion trunk/drivers/dma/amba-pl08x.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@

#define DRIVER_NAME "pl08xdmac"

static struct amba_driver pl08x_amba_driver;

/**
* struct vendor_data - vendor-specific config parameters for PL08x derivatives
* @channels: the number of channels available in this variant
Expand Down Expand Up @@ -1420,9 +1422,15 @@ static int pl08x_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,

bool pl08x_filter_id(struct dma_chan *chan, void *chan_id)
{
struct pl08x_dma_chan *plchan = to_pl08x_chan(chan);
struct pl08x_dma_chan *plchan;
char *name = chan_id;

/* Reject channels for devices not bound to this driver */
if (chan->device->dev->driver != &pl08x_amba_driver.drv)
return false;

plchan = to_pl08x_chan(chan);

/* Check that the channel is not taken! */
if (!strcmp(plchan->name, name))
return true;
Expand Down

0 comments on commit 3981700

Please sign in to comment.