Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173210
b: refs/heads/master
c: d63c489
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Oct 14, 2009
1 parent 0e24c13 commit 56aae22
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: df502e389383b219e44819fe757614450d95f297
refs/heads/master: d63c489b881707adf9c0b89f771b30a1d78f4197
11 changes: 4 additions & 7 deletions trunk/arch/um/drivers/mmapper_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/smp_lock.h>

#include <asm/uaccess.h>
#include "mem_user.h"

Expand Down Expand Up @@ -78,7 +78,6 @@ static int mmapper_mmap(struct file *file, struct vm_area_struct *vma)

static int mmapper_open(struct inode *inode, struct file *file)
{
cycle_kernel_lock();
return 0;
}

Expand Down Expand Up @@ -115,18 +114,16 @@ static int __init mmapper_init(void)
v_buf = (char *) find_iomem("mmapper", &mmapper_size);
if (mmapper_size == 0) {
printk(KERN_ERR "mmapper_init - find_iomem failed\n");
goto out;
return -ENODEV;
}
p_buf = __pa(v_buf);

err = misc_register(&mmapper_dev);
if (err) {
printk(KERN_ERR "mmapper - misc_register failed, err = %d\n",
err);
goto out;
return err;;
}

p_buf = __pa(v_buf);
out:
return 0;
}

Expand Down

0 comments on commit 56aae22

Please sign in to comment.