浏览代码

Blackfin: coreb: update ioctl numbers

We have to use ioctl numbers that don't collide with common code.
Otherwise, these ones never even get called because the common fs
code swalled all invocations.

Reported-by: Kay Duenzer <kduenzer@maku.eu>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 15 年之前
父节点
当前提交
7696eecf14
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      arch/blackfin/mach-bf561/coreb.c

+ 3 - 3
arch/blackfin/mach-bf561/coreb.c

@@ -18,9 +18,9 @@
 #include <linux/miscdevice.h>
 #include <linux/miscdevice.h>
 #include <linux/module.h>
 #include <linux/module.h>
 
 
-#define CMD_COREB_START		2
-#define CMD_COREB_STOP		3
-#define CMD_COREB_RESET		4
+#define CMD_COREB_START		_IO('b', 0)
+#define CMD_COREB_STOP		_IO('b', 1)
+#define CMD_COREB_RESET		_IO('b', 2)
 
 
 static long
 static long
 coreb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 coreb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)