diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2005-11-07 06:15:26 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-07 07:37:38 -0500 |
commit | 97894cda5773e59bd13e87b72077751099419a9f (patch) | |
tree | 9a039ab8c122ae9a4f64d285e2da0efd1356789e /drivers/mtd/mtdcore.c | |
parent | b95f9609c761a14d1e7be1a89f2a66399b5ae343 (diff) |
[MTD] core: Clean up trailing white spaces
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r-- | drivers/mtd/mtdcore.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 2c16e051c61a..dade02ab0687 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: mtdcore.c,v 1.46 2005/08/11 17:13:43 gleixner Exp $ | 2 | * $Id: mtdcore.c,v 1.47 2005/11/07 11:14:20 gleixner Exp $ |
3 | * | 3 | * |
4 | * Core registration and callback routines for MTD | 4 | * Core registration and callback routines for MTD |
5 | * drivers and users. | 5 | * drivers and users. |
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include <linux/mtd/mtd.h> | 26 | #include <linux/mtd/mtd.h> |
27 | 27 | ||
28 | /* These are exported solely for the purpose of mtd_blkdevs.c. You | 28 | /* These are exported solely for the purpose of mtd_blkdevs.c. You |
29 | should not use them for _anything_ else */ | 29 | should not use them for _anything_ else */ |
30 | DECLARE_MUTEX(mtd_table_mutex); | 30 | DECLARE_MUTEX(mtd_table_mutex); |
31 | struct mtd_info *mtd_table[MAX_MTD_DEVICES]; | 31 | struct mtd_info *mtd_table[MAX_MTD_DEVICES]; |
@@ -66,7 +66,7 @@ int add_mtd_device(struct mtd_info *mtd) | |||
66 | struct mtd_notifier *not = list_entry(this, struct mtd_notifier, list); | 66 | struct mtd_notifier *not = list_entry(this, struct mtd_notifier, list); |
67 | not->add(mtd); | 67 | not->add(mtd); |
68 | } | 68 | } |
69 | 69 | ||
70 | up(&mtd_table_mutex); | 70 | up(&mtd_table_mutex); |
71 | /* We _know_ we aren't being removed, because | 71 | /* We _know_ we aren't being removed, because |
72 | our caller is still holding us here. So none | 72 | our caller is still holding us here. So none |
@@ -75,7 +75,7 @@ int add_mtd_device(struct mtd_info *mtd) | |||
75 | __module_get(THIS_MODULE); | 75 | __module_get(THIS_MODULE); |
76 | return 0; | 76 | return 0; |
77 | } | 77 | } |
78 | 78 | ||
79 | up(&mtd_table_mutex); | 79 | up(&mtd_table_mutex); |
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
@@ -93,13 +93,13 @@ int add_mtd_device(struct mtd_info *mtd) | |||
93 | int del_mtd_device (struct mtd_info *mtd) | 93 | int del_mtd_device (struct mtd_info *mtd) |
94 | { | 94 | { |
95 | int ret; | 95 | int ret; |
96 | 96 | ||
97 | down(&mtd_table_mutex); | 97 | down(&mtd_table_mutex); |
98 | 98 | ||
99 | if (mtd_table[mtd->index] != mtd) { | 99 | if (mtd_table[mtd->index] != mtd) { |
100 | ret = -ENODEV; | 100 | ret = -ENODEV; |
101 | } else if (mtd->usecount) { | 101 | } else if (mtd->usecount) { |
102 | printk(KERN_NOTICE "Removing MTD device #%d (%s) with use count %d\n", | 102 | printk(KERN_NOTICE "Removing MTD device #%d (%s) with use count %d\n", |
103 | mtd->index, mtd->name, mtd->usecount); | 103 | mtd->index, mtd->name, mtd->usecount); |
104 | ret = -EBUSY; | 104 | ret = -EBUSY; |
105 | } else { | 105 | } else { |
@@ -140,7 +140,7 @@ void register_mtd_user (struct mtd_notifier *new) | |||
140 | list_add(&new->list, &mtd_notifiers); | 140 | list_add(&new->list, &mtd_notifiers); |
141 | 141 | ||
142 | __module_get(THIS_MODULE); | 142 | __module_get(THIS_MODULE); |
143 | 143 | ||
144 | for (i=0; i< MAX_MTD_DEVICES; i++) | 144 | for (i=0; i< MAX_MTD_DEVICES; i++) |
145 | if (mtd_table[i]) | 145 | if (mtd_table[i]) |
146 | new->add(mtd_table[i]); | 146 | new->add(mtd_table[i]); |
@@ -169,7 +169,7 @@ int unregister_mtd_user (struct mtd_notifier *old) | |||
169 | for (i=0; i< MAX_MTD_DEVICES; i++) | 169 | for (i=0; i< MAX_MTD_DEVICES; i++) |
170 | if (mtd_table[i]) | 170 | if (mtd_table[i]) |
171 | old->remove(mtd_table[i]); | 171 | old->remove(mtd_table[i]); |
172 | 172 | ||
173 | list_del(&old->list); | 173 | list_del(&old->list); |
174 | up(&mtd_table_mutex); | 174 | up(&mtd_table_mutex); |
175 | return 0; | 175 | return 0; |
@@ -187,7 +187,7 @@ int unregister_mtd_user (struct mtd_notifier *old) | |||
187 | * both, return the num'th driver only if its address matches. Return NULL | 187 | * both, return the num'th driver only if its address matches. Return NULL |
188 | * if not. | 188 | * if not. |
189 | */ | 189 | */ |
190 | 190 | ||
191 | struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) | 191 | struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) |
192 | { | 192 | { |
193 | struct mtd_info *ret = NULL; | 193 | struct mtd_info *ret = NULL; |