diff options
author | Oskar Schirmer <oskar@scara.com> | 2012-05-31 05:28:43 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-07-23 06:48:04 -0400 |
commit | 18cb2ae55f98648caf0d52ef075f38b16aae7ec6 (patch) | |
tree | 8556f04c4c75c21c6bb5be896bb6843ba8bd2563 /drivers/char/ipmi/ipmi_watchdog.c | |
parent | 90fe6c608f8d46e5bb3f31c2d5e1c90475253f79 (diff) |
char/ipmi: remove local ioctl defines replaced by generic ones
This watchdog driver had ioctl defines introduced locally
for pre timeout handling, marked to be removed as soon as
a generic replacement would become available.
The latter has actually occurred in 2006, at e05b59fe.
Remove the local duplicates for pre timeout handling.
Signed-off-by: Oskar Schirmer <oskar@scara.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_watchdog.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_watchdog.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index 7ed356e52035..37b8be7cba95 100644 --- a/drivers/char/ipmi/ipmi_watchdog.c +++ b/drivers/char/ipmi/ipmi_watchdog.c | |||
@@ -141,17 +141,6 @@ | |||
141 | 141 | ||
142 | #define IPMI_WDOG_TIMER_NOT_INIT_RESP 0x80 | 142 | #define IPMI_WDOG_TIMER_NOT_INIT_RESP 0x80 |
143 | 143 | ||
144 | /* These are here until the real ones get into the watchdog.h interface. */ | ||
145 | #ifndef WDIOC_GETTIMEOUT | ||
146 | #define WDIOC_GETTIMEOUT _IOW(WATCHDOG_IOCTL_BASE, 20, int) | ||
147 | #endif | ||
148 | #ifndef WDIOC_SET_PRETIMEOUT | ||
149 | #define WDIOC_SET_PRETIMEOUT _IOW(WATCHDOG_IOCTL_BASE, 21, int) | ||
150 | #endif | ||
151 | #ifndef WDIOC_GET_PRETIMEOUT | ||
152 | #define WDIOC_GET_PRETIMEOUT _IOW(WATCHDOG_IOCTL_BASE, 22, int) | ||
153 | #endif | ||
154 | |||
155 | static DEFINE_MUTEX(ipmi_watchdog_mutex); | 144 | static DEFINE_MUTEX(ipmi_watchdog_mutex); |
156 | static bool nowayout = WATCHDOG_NOWAYOUT; | 145 | static bool nowayout = WATCHDOG_NOWAYOUT; |
157 | 146 | ||
@@ -732,7 +721,6 @@ static int ipmi_ioctl(struct file *file, | |||
732 | return -EFAULT; | 721 | return -EFAULT; |
733 | return 0; | 722 | return 0; |
734 | 723 | ||
735 | case WDIOC_SET_PRETIMEOUT: | ||
736 | case WDIOC_SETPRETIMEOUT: | 724 | case WDIOC_SETPRETIMEOUT: |
737 | i = copy_from_user(&val, argp, sizeof(int)); | 725 | i = copy_from_user(&val, argp, sizeof(int)); |
738 | if (i) | 726 | if (i) |
@@ -740,7 +728,6 @@ static int ipmi_ioctl(struct file *file, | |||
740 | pretimeout = val; | 728 | pretimeout = val; |
741 | return ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); | 729 | return ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); |
742 | 730 | ||
743 | case WDIOC_GET_PRETIMEOUT: | ||
744 | case WDIOC_GETPRETIMEOUT: | 731 | case WDIOC_GETPRETIMEOUT: |
745 | i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); | 732 | i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); |
746 | if (i) | 733 | if (i) |