aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc64/kernel/ioctl32.c10
-rw-r--r--drivers/sbus/char/envctrl.c18
2 files changed, 10 insertions, 18 deletions
diff --git a/arch/sparc64/kernel/ioctl32.c b/arch/sparc64/kernel/ioctl32.c
index fa486229c618..d20c8098cdf2 100644
--- a/arch/sparc64/kernel/ioctl32.c
+++ b/arch/sparc64/kernel/ioctl32.c
@@ -474,16 +474,6 @@ COMPATIBLE_IOCTL(FBIOGCURMAX)
474/* Little v, the video4linux ioctls */ 474/* Little v, the video4linux ioctls */
475COMPATIBLE_IOCTL(_IOR('p', 20, int[7])) /* RTCGET */ 475COMPATIBLE_IOCTL(_IOR('p', 20, int[7])) /* RTCGET */
476COMPATIBLE_IOCTL(_IOW('p', 21, int[7])) /* RTCSET */ 476COMPATIBLE_IOCTL(_IOW('p', 21, int[7])) /* RTCSET */
477COMPATIBLE_IOCTL(ENVCTRL_RD_WARNING_TEMPERATURE)
478COMPATIBLE_IOCTL(ENVCTRL_RD_SHUTDOWN_TEMPERATURE)
479COMPATIBLE_IOCTL(ENVCTRL_RD_CPU_TEMPERATURE)
480COMPATIBLE_IOCTL(ENVCTRL_RD_FAN_STATUS)
481COMPATIBLE_IOCTL(ENVCTRL_RD_VOLTAGE_STATUS)
482COMPATIBLE_IOCTL(ENVCTRL_RD_SCSI_TEMPERATURE)
483COMPATIBLE_IOCTL(ENVCTRL_RD_ETHERNET_TEMPERATURE)
484COMPATIBLE_IOCTL(ENVCTRL_RD_MTHRBD_TEMPERATURE)
485COMPATIBLE_IOCTL(ENVCTRL_RD_CPU_VOLTAGE)
486COMPATIBLE_IOCTL(ENVCTRL_RD_GLOBALADDRESS)
487/* COMPATIBLE_IOCTL(D7SIOCRD) same value as ENVCTRL_RD_VOLTAGE_STATUS */ 477/* COMPATIBLE_IOCTL(D7SIOCRD) same value as ENVCTRL_RD_VOLTAGE_STATUS */
488COMPATIBLE_IOCTL(D7SIOCWR) 478COMPATIBLE_IOCTL(D7SIOCWR)
489COMPATIBLE_IOCTL(D7SIOCTM) 479COMPATIBLE_IOCTL(D7SIOCTM)
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c
index ba56762b05f6..19e8eddf887a 100644
--- a/drivers/sbus/char/envctrl.c
+++ b/drivers/sbus/char/envctrl.c
@@ -654,9 +654,8 @@ envctrl_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
654/* Function Description: Command what to read. Mapped to user ioctl(). 654/* Function Description: Command what to read. Mapped to user ioctl().
655 * Return: Gives 0 for implemented commands, -EINVAL otherwise. 655 * Return: Gives 0 for implemented commands, -EINVAL otherwise.
656 */ 656 */
657static int 657static long
658envctrl_ioctl(struct inode *inode, struct file *file, 658envctrl_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
659 unsigned int cmd, unsigned long arg)
660{ 659{
661 char __user *infobuf; 660 char __user *infobuf;
662 661
@@ -715,11 +714,14 @@ envctrl_release(struct inode *inode, struct file *file)
715} 714}
716 715
717static struct file_operations envctrl_fops = { 716static struct file_operations envctrl_fops = {
718 .owner = THIS_MODULE, 717 .owner = THIS_MODULE,
719 .read = envctrl_read, 718 .read = envctrl_read,
720 .ioctl = envctrl_ioctl, 719 .unlocked_ioctl = envctrl_ioctl,
721 .open = envctrl_open, 720#ifdef CONFIG_COMPAT
722 .release = envctrl_release, 721 .compat_ioctl = envctrl_ioctl,
722#endif
723 .open = envctrl_open,
724 .release = envctrl_release,
723}; 725};
724 726
725static struct miscdevice envctrl_dev = { 727static struct miscdevice envctrl_dev = {