X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmtdchar.c;h=02b93f9c266b400f90ea5f1673f839476c70fe31;hb=7b563c525e46f373a521421e31aa791cc27beb56;hp=3db73d8c26b8671d3ce2802bb5f4aa76289b3a94;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 3db73d8c2..02b93f9c2 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c @@ -1,5 +1,5 @@ /* - * $Id: mtdchar.c,v 1.64 2004/08/09 13:59:46 dwmw2 Exp $ + * $Id: mtdchar.c,v 1.62 2004/07/14 13:20:42 dwmw2 Exp $ * * Character-device access to raw MTD devices. * @@ -262,7 +262,7 @@ static ssize_t mtd_write(struct file *file, const char __user *buf, size_t count IOCTL calls for getting device parameters. ======================================================================*/ -static void mtdchar_erase_callback (struct erase_info *instr) +static void mtd_erase_callback (struct erase_info *instr) { wake_up((wait_queue_head_t *)instr->priv); } @@ -336,7 +336,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file, return -EFAULT; } erase->mtd = mtd; - erase->callback = mtdchar_erase_callback; + erase->callback = mtd_erase_callback; erase->priv = (unsigned long)&waitq; /* @@ -511,6 +511,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file, } default: + DEBUG(MTD_DEBUG_LEVEL0, "Invalid ioctl %x (MEMGETINFO = %x)\n", cmd, MEMGETINFO); ret = -ENOTTY; }