Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197155
b: refs/heads/master
c: be29eac
h: refs/heads/master
i:
  197153: 94cbe8b
  197151: c122162
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent d0df931 commit 70fc7e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 39 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: 47c92858446004d3cf28d8115266d631cdfd5d0a
refs/heads/master: be29eac8ed3fd21d86f79d2e84dff49b8a13cd2c
18 changes: 5 additions & 13 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include "comedidev.h"
#include "wrapper.h"
#include <linux/highmem.h> /* for SuSE brokenness */
#include <linux/vmalloc.h>
#include <linux/cdev.h>
Expand Down Expand Up @@ -442,9 +441,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned i;
for (i = 0; i < async->n_buf_pages; ++i) {
if (async->buf_page_list[i].virt_addr) {
mem_map_unreserve(virt_to_page
(async->buf_page_list[i].
virt_addr));
clear_bit(PG_reserved, &(virt_to_page(async->buf_page_list[i].virt_addr)->flags));
if (s->async_dma_dir != DMA_NONE) {
dma_free_coherent(dev->hw_dev,
PAGE_SIZE,
Expand Down Expand Up @@ -497,12 +494,9 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
if (async->buf_page_list[i].virt_addr == NULL)
break;

mem_map_reserve(virt_to_page
(async->buf_page_list[i].
virt_addr));
pages[i] =
virt_to_page(async->
buf_page_list[i].virt_addr);
set_bit(PG_reserved,
&(virt_to_page(async->buf_page_list[i].virt_addr)->flags));
pages[i] = virt_to_page(async->buf_page_list[i].virt_addr);
}
}
if (i == n_pages) {
Expand All @@ -519,9 +513,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
NULL) {
break;
}
mem_map_unreserve(virt_to_page
(async->buf_page_list
[i].virt_addr));
clear_bit(PG_reserved, &(virt_to_page(async->buf_page_list[i].virt_addr)->flags));
if (s->async_dma_dir != DMA_NONE) {
dma_free_coherent(dev->hw_dev,
PAGE_SIZE,
Expand Down
25 changes: 0 additions & 25 deletions trunk/drivers/staging/comedi/wrapper.h

This file was deleted.

0 comments on commit 70fc7e1

Please sign in to comment.