]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG 05/57] atp watchdog
authorAlan Cox <alan@redhat.com>
Mon, 19 May 2008 13:05:13 +0000 (14:05 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 27 May 2008 15:26:40 +0000 (15:26 +0000)
Switch to unlocked_ioctl

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/at32ap700x_wdt.c

index ae0fca5e8749e450308f9b14b1a92f061c5cdd44..c5dc5e912fb255f8736ceb30e73ddb34283aa695 100644 (file)
@@ -212,8 +212,8 @@ static struct watchdog_info at32_wdt_info = {
 /*
  * Handle commands from user-space.
  */
-static int at32_wdt_ioctl(struct inode *inode, struct file *file,
-               unsigned int cmd, unsigned long arg)
+static long at32_wdt_ioctl(struct file *file,
+                               unsigned int cmd, unsigned long arg)
 {
        int ret = -ENOTTY;
        int time;
@@ -298,7 +298,7 @@ static ssize_t at32_wdt_write(struct file *file, const char __user *data,
 static const struct file_operations at32_wdt_fops = {
        .owner          = THIS_MODULE,
        .llseek         = no_llseek,
-       .ioctl          = at32_wdt_ioctl,
+       .unlocked_ioctl = at32_wdt_ioctl,
        .open           = at32_wdt_open,
        .release        = at32_wdt_close,
        .write          = at32_wdt_write,
@@ -391,7 +391,6 @@ static int __exit at32_wdt_remove(struct platform_device *pdev)
                wdt = NULL;
                platform_set_drvdata(pdev, NULL);
        }
-
        return 0;
 }