Title: [7435] trunk/drivers/char/bfin-otp.c: bfin-otp: switch unlocked ioctl and fix printf warning
Revision
7435
Author
vapier
Date
2009-09-23 13:30:56 -0400 (Wed, 23 Sep 2009)

Log Message

bfin-otp: switch unlocked ioctl and fix printf warning

Modified Paths


Diff

Modified: trunk/drivers/char/bfin-otp.c (7434 => 7435)


--- trunk/drivers/char/bfin-otp.c	2009-09-23 17:18:38 UTC (rev 7434)
+++ trunk/drivers/char/bfin-otp.c	2009-09-23 17:30:56 UTC (rev 7435)
@@ -1,7 +1,7 @@
 /*
  * Blackfin On-Chip OTP Memory Interface
  *
- * Copyright 2007-2008 Analog Devices Inc.
+ * Copyright 2007-2009 Analog Devices Inc.
  *
  * Enter bugs at http://blackfin.uclinux.org/
  *
@@ -171,8 +171,7 @@
 	return bytes_done;
 }
 
-static int bfin_otp_ioctl(struct inode *inode, struct file *filp,
-                          unsigned cmd, unsigned long arg)
+static long bfin_otp_ioctl(struct file *filp, unsigned cmd, unsigned long arg)
 {
 	stampit();
 
@@ -190,7 +189,7 @@
 		timing = bfin_otp_init_timing();
 		if (timing) {
 			u32 otp_result = bfrom_OtpWrite(arg, OTP_LOCK, NULL);
-			stamp("locking page %i resulted in 0x%x", arg, otp_result);
+			stamp("locking page %lu resulted in 0x%x", arg, otp_result);
 			if (!(otp_result & OTP_MASTER_ERROR))
 				ret = 0;
 
@@ -219,10 +218,10 @@
 #endif
 
 static struct file_operations bfin_otp_fops = {
-	.owner    = THIS_MODULE,
-	.ioctl    = bfin_otp_ioctl,
-	.read     = bfin_otp_read,
-	.write    = bfin_otp_write,
+	.owner          = THIS_MODULE,
+	.unlocked_ioctl = bfin_otp_ioctl,
+	.read           = bfin_otp_read,
+	.write          = bfin_otp_write,
 };
 
 static struct miscdevice bfin_otp_misc_device = {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to