Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252505
b: refs/heads/master
c: d5ca512
h: refs/heads/master
i:
  252503: 3633917
v: v3
  • Loading branch information
Wanlong Gao authored and David Woodhouse committed May 25, 2011
1 parent 2bc40c8 commit d1c8b16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 8d8f26e19cae48541b824f164021e1ff05067f8c
refs/heads/master: d5ca51292d899a19882cb9bf8f64079209e688fe
8 changes: 4 additions & 4 deletions trunk/drivers/mtd/mtdcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void register_mtd_user (struct mtd_notifier *new)

list_add(&new->list, &mtd_notifiers);

__module_get(THIS_MODULE);
__module_get(THIS_MODULE);

mtd_for_each_device(mtd)
new->add(mtd);
Expand Down Expand Up @@ -707,9 +707,9 @@ static int mtd_proc_show(struct seq_file *m, void *v)
seq_printf(m, "mtd%d: %8.8llx %8.8x \"%s\"\n",
mtd->index, (unsigned long long)mtd->size,
mtd->erasesize, mtd->name);
}
}
mutex_unlock(&mtd_table_mutex);
return 0;
return 0;
}

static int mtd_proc_open(struct inode *inode, struct file *file)
Expand Down Expand Up @@ -781,7 +781,7 @@ static int __init init_mtd(void)
static void __exit cleanup_mtd(void)
{
#ifdef CONFIG_PROC_FS
if (proc_mtd)
if (proc_mtd)
remove_proc_entry( "mtd", NULL);
#endif /* CONFIG_PROC_FS */
class_unregister(&mtd_class);
Expand Down

0 comments on commit d1c8b16

Please sign in to comment.