Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95555
b: refs/heads/master
c: bb84b41
h: refs/heads/master
i:
  95553: 25cf215
  95551: 12d2818
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Apr 29, 2008
1 parent aa0b4ed commit 012f759
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 9570a20e9da282721afc6885dbeaa1b9c1e7ff4d
refs/heads/master: bb84b41d1a1e3ad1ebe7f91a7c97d3b6ca242e9d
11 changes: 4 additions & 7 deletions trunk/drivers/pnp/pnpacpi/rsparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ static int dma_flags(int type, int bus_master, int transfer)
}

static void pnpacpi_parse_allocated_dmaresource(struct pnp_resource_table *res,
u32 dma, int type,
int bus_master, int transfer)
u32 dma, int flags)
{
int i = 0;
static unsigned char warned;
Expand All @@ -180,8 +179,7 @@ static void pnpacpi_parse_allocated_dmaresource(struct pnp_resource_table *res,
i++;
if (i < PNP_MAX_DMA) {
res->dma_resource[i].flags = IORESOURCE_DMA; // Also clears _UNSET flag
res->dma_resource[i].flags |=
dma_flags(type, bus_master, transfer);
res->dma_resource[i].flags |= flags;
if (dma == -1) {
res->dma_resource[i].flags |= IORESOURCE_DISABLED;
return;
Expand Down Expand Up @@ -311,9 +309,8 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,
if (dma->channel_count > 0)
pnpacpi_parse_allocated_dmaresource(res_table,
dma->channels[0],
dma->type,
dma->bus_master,
dma->transfer);
dma_flags(dma->type, dma->bus_master,
dma->transfer));
break;

case ACPI_RESOURCE_TYPE_IO:
Expand Down

0 comments on commit 012f759

Please sign in to comment.