提交 4d551465 编写于 作者: H Herbert Poetzl 提交者: Linus Torvalds

[PATCH] mtd: fix broken name_to_dev_t() declaration

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: NHerbert Poetzl <herbert@13thfloor.at>
Acked-by: NMicah Anderson <micah@riseup.net>
Acked-by: NDaniel Hokka Zakrisson <daniel@hozac.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Acked-by: NDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 84e699e6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册