X-Git-Url: http://git.agner.ch/gitweb/?a=blobdiff_plain;f=drivers%2Fchar%2Fwatchdog%2Fmpc8xx_wdt.c;h=8aaed10dd4999e66928168cdb781df1fda97fad2;hb=f0eef25339f92f7cd4aeea23d9ae97987a5a1e82;hp=11f0ccd4c4d47de59c72087a48e8c0d722a9a483;hpb=05668381140309088443bf5dc53add4104610fbb;p=linux-drm-fsl-dcu.git diff --git a/drivers/char/watchdog/mpc8xx_wdt.c b/drivers/char/watchdog/mpc8xx_wdt.c index 11f0ccd4c4d4..8aaed10dd499 100644 --- a/drivers/char/watchdog/mpc8xx_wdt.c +++ b/drivers/char/watchdog/mpc8xx_wdt.c @@ -126,13 +126,13 @@ static int mpc8xx_wdt_ioctl(struct inode *inode, struct file *file, break; default: - return -ENOIOCTLCMD; + return -ENOTTY; } return 0; } -static struct file_operations mpc8xx_wdt_fops = { +static const struct file_operations mpc8xx_wdt_fops = { .owner = THIS_MODULE, .llseek = no_llseek, .write = mpc8xx_wdt_write,