Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195872
b: refs/heads/master
c: dad0db3
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David Woodhouse committed Feb 25, 2010
1 parent d1b65b3 commit ed80d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 4d3a8534bdbcf4843fc8ad05c9a81a964fc65237
refs/heads/master: dad0db318b391ddb9845ac5e52044f921219bf69
5 changes: 3 additions & 2 deletions trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,8 @@ static int __init init_mtdchar(void)
{
int status;

status = register_chrdev(MTD_CHAR_MAJOR, "mtd", &mtd_fops);
status = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS,
"mtd", &mtd_fops);
if (status < 0) {
printk(KERN_NOTICE "Can't allocate major number %d for Memory Technology Devices.\n",
MTD_CHAR_MAJOR);
Expand All @@ -966,7 +967,7 @@ static int __init init_mtdchar(void)

static void __exit cleanup_mtdchar(void)
{
unregister_chrdev(MTD_CHAR_MAJOR, "mtd");
__unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd");
}

module_init(init_mtdchar);
Expand Down

0 comments on commit ed80d16

Please sign in to comment.