mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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: 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]>
This commit is contained in:
parent
84e699e6ec
commit
4d55146598
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue