diff options
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index f1af2228a1b1..61086ea3cc6b 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -1144,7 +1144,7 @@ static void mtdchar_notify_remove(struct mtd_info *mtd) | |||
1144 | 1144 | ||
1145 | if (mtd_ino) { | 1145 | if (mtd_ino) { |
1146 | /* Destroy the inode if it exists */ | 1146 | /* Destroy the inode if it exists */ |
1147 | mtd_ino->i_nlink = 0; | 1147 | clear_nlink(mtd_ino); |
1148 | iput(mtd_ino); | 1148 | iput(mtd_ino); |
1149 | } | 1149 | } |
1150 | } | 1150 | } |