Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317126
b: refs/heads/master
c: 1364b02
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 9a9bcd1 commit 2aafa6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 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: 5b28e55eb15f88920cd509332a22f80d72d55284
refs/heads/master: 1364b02fbf6e2d298ff2428ace81f9c6517b4bd8
33 changes: 0 additions & 33 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,39 +383,6 @@ static int insn_rw_emulate_bits(struct comedi_device *dev,
return 1;
}

static inline unsigned long uvirt_to_kva(pgd_t *pgd, unsigned long adr)
{
unsigned long ret = 0UL;
pmd_t *pmd;
pte_t *ptep, pte;
pud_t *pud;

if (!pgd_none(*pgd)) {
pud = pud_offset(pgd, adr);
pmd = pmd_offset(pud, adr);
if (!pmd_none(*pmd)) {
ptep = pte_offset_kernel(pmd, adr);
pte = *ptep;
if (pte_present(pte)) {
ret = (unsigned long)
page_address(pte_page(pte));
ret |= (adr & (PAGE_SIZE - 1));
}
}
}
return ret;
}

static inline unsigned long kvirt_to_kva(unsigned long adr)
{
unsigned long va, kva;

va = adr;
kva = uvirt_to_kva(pgd_offset_k(va), va);

return kva;
}

int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned long new_size)
{
Expand Down

0 comments on commit 2aafa6d

Please sign in to comment.