Skip to content

Commit

Permalink
[PATCH] mtd: fix broken name_to_dev_t() declaration
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
herbertp authored and Linus Torvalds committed Mar 31, 2006
1 parent 84e699e commit 4d55146
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mtd/devices/blkmtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4d55146

Please sign in to comment.