projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e699e
)
[PATCH] mtd: fix broken name_to_dev_t() declaration
author
Herbert Poetzl
<
[email protected]
>
Fri, 31 Mar 2006 10:29:53 +0000
(
02:29
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 31 Mar 2006 20:18:49 +0000
(12:18 -0800)
drivers/mtd/devices/blkmtd.c uses a local declaration of name_to_dev_t()
which is inconsistant with the real one. the following patch fixes this by
removing the local declaration and including mount.h instead
this patch was originally done by Micah Anderson.
Signed-off-by: Herbert Poetzl <
[email protected]
>
Acked-by: Micah Anderson <
[email protected]
>
Acked-by: Daniel Hokka Zakrisson <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Acked-by: David Woodhouse <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/mtd/devices/blkmtd.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/blkmtd.c
b/drivers/mtd/devices/blkmtd.c
index d732532635a16c77a4397706026cc5de2931cfff..79f2e1f23ebd72eea4622ba1223f1796940c86c0 100644
(file)
--- a/
drivers/mtd/devices/blkmtd.c
+++ b/
drivers/mtd/devices/blkmtd.c
@@
-28,6
+28,7
@@
#include <linux/pagemap.h>
#include <linux/list.h>
#include <linux/init.h>
+#include <linux/mount.h>
#include <linux/mtd/mtd.h>
#include <linux/mutex.h>
@@
-614,8
+615,6
@@
static struct mtd_erase_region_info *calc_erase_regions(
}
-extern dev_t __init name_to_dev_t(const char *line);
-
static struct blkmtd_dev *add_device(char *devname, int readonly, int erase_size)
{
struct block_device *bdev;