Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61559
b: refs/heads/master
c: e53252d
h: refs/heads/master
i:
  61557: 3c6d65f
  61555: 5133b50
  61551: 94823ed
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jul 19, 2007
1 parent eed1d93 commit c5712bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 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: 68fc4fabca897a09f75f53bac14cdc7a98f52210
refs/heads/master: e53252d97e670a38b1d2e9723b48077bba11ddda
3 changes: 1 addition & 2 deletions trunk/fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,13 @@ void unregister_chrdev_region(dev_t from, unsigned count)
}
}

int unregister_chrdev(unsigned int major, const char *name)
void unregister_chrdev(unsigned int major, const char *name)
{
struct char_device_struct *cd;
cd = __unregister_chrdev_region(major, 0, 256);
if (cd && cd->cdev)
cdev_del(cd->cdev);
kfree(cd);
return 0;
}

static DEFINE_SPINLOCK(cdev_lock);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ extern int alloc_chrdev_region(dev_t *, unsigned, unsigned, const char *);
extern int register_chrdev_region(dev_t, unsigned, const char *);
extern int register_chrdev(unsigned int, const char *,
const struct file_operations *);
extern int unregister_chrdev(unsigned int, const char *);
extern void unregister_chrdev(unsigned int, const char *);
extern void unregister_chrdev_region(dev_t, unsigned);
extern int chrdev_open(struct inode *, struct file *);
extern void chrdev_show(struct seq_file *,off_t);
Expand Down

0 comments on commit c5712bf

Please sign in to comment.