Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93323
b: refs/heads/master
c: 454459b
h: refs/heads/master
i:
  93321: 13d8583
  93319: 00ebaf6
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Apr 25, 2008
1 parent ff091ea commit d0ea14a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 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: d43a05fdc2b5675efc45c32d427ff987a10b617a
refs/heads/master: 454459b02ea9c8e850fd0b4e770037daf9a7b758
9 changes: 3 additions & 6 deletions trunk/drivers/usb/mon/mon_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,6 @@ mon_bin_poll(struct file *file, struct poll_table_struct *wait)
return mask;
}

#if 0

/*
* open and close: just keep track of how many times the device is
* mapped, to use the proper memory allocation function.
Expand Down Expand Up @@ -1063,13 +1061,13 @@ static int mon_bin_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
return 0;
}

struct vm_operations_struct mon_bin_vm_ops = {
static struct vm_operations_struct mon_bin_vm_ops = {
.open = mon_bin_vma_open,
.close = mon_bin_vma_close,
.fault = mon_bin_vma_fault,
};

int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
static int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
{
/* don't do anything here: "fault" will set up page table entries */
vma->vm_ops = &mon_bin_vm_ops;
Expand All @@ -1079,8 +1077,6 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
return 0;
}

#endif /* 0 */

static const struct file_operations mon_fops_binary = {
.owner = THIS_MODULE,
.open = mon_bin_open,
Expand All @@ -1090,6 +1086,7 @@ static const struct file_operations mon_fops_binary = {
.poll = mon_bin_poll,
.ioctl = mon_bin_ioctl,
.release = mon_bin_release,
.mmap = mon_bin_mmap,
};

static int mon_bin_wait_event(struct file *file, struct mon_reader_bin *rp)
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/usb/mon/mon_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ static void mon_submit_error(struct usb_bus *ubus, struct urb *urb, int error)

/*
*/
static void mon_bus_complete(struct mon_bus *mbus, struct urb *urb,
int status)
static void mon_bus_complete(struct mon_bus *mbus, struct urb *urb, int status)
{
unsigned long flags;
struct list_head *pos;
Expand Down

0 comments on commit d0ea14a

Please sign in to comment.