diff options
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_devintf.c | 9 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 1 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_poweroff.c | 1 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 5 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_watchdog.c | 1 |
5 files changed, 2 insertions, 15 deletions
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c index e1c95374984c..2fc894fef1cb 100644 --- a/drivers/char/ipmi/ipmi_devintf.c +++ b/drivers/char/ipmi/ipmi_devintf.c | |||
@@ -31,7 +31,6 @@ | |||
31 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 31 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <linux/config.h> | ||
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
37 | #include <linux/errno.h> | 36 | #include <linux/errno.h> |
@@ -40,7 +39,6 @@ | |||
40 | #include <linux/poll.h> | 39 | #include <linux/poll.h> |
41 | #include <linux/spinlock.h> | 40 | #include <linux/spinlock.h> |
42 | #include <linux/slab.h> | 41 | #include <linux/slab.h> |
43 | #include <linux/devfs_fs_kernel.h> | ||
44 | #include <linux/ipmi.h> | 42 | #include <linux/ipmi.h> |
45 | #include <linux/mutex.h> | 43 | #include <linux/mutex.h> |
46 | #include <linux/init.h> | 44 | #include <linux/init.h> |
@@ -804,9 +802,6 @@ static void ipmi_new_smi(int if_num, struct device *device) | |||
804 | dev_t dev = MKDEV(ipmi_major, if_num); | 802 | dev_t dev = MKDEV(ipmi_major, if_num); |
805 | struct ipmi_reg_list *entry; | 803 | struct ipmi_reg_list *entry; |
806 | 804 | ||
807 | devfs_mk_cdev(dev, S_IFCHR | S_IRUSR | S_IWUSR, | ||
808 | "ipmidev/%d", if_num); | ||
809 | |||
810 | entry = kmalloc(sizeof(*entry), GFP_KERNEL); | 805 | entry = kmalloc(sizeof(*entry), GFP_KERNEL); |
811 | if (!entry) { | 806 | if (!entry) { |
812 | printk(KERN_ERR "ipmi_devintf: Unable to create the" | 807 | printk(KERN_ERR "ipmi_devintf: Unable to create the" |
@@ -836,7 +831,6 @@ static void ipmi_smi_gone(int if_num) | |||
836 | } | 831 | } |
837 | class_device_destroy(ipmi_class, dev); | 832 | class_device_destroy(ipmi_class, dev); |
838 | mutex_unlock(®_list_mutex); | 833 | mutex_unlock(®_list_mutex); |
839 | devfs_remove("ipmidev/%d", if_num); | ||
840 | } | 834 | } |
841 | 835 | ||
842 | static struct ipmi_smi_watcher smi_watcher = | 836 | static struct ipmi_smi_watcher smi_watcher = |
@@ -872,8 +866,6 @@ static __init int init_ipmi_devintf(void) | |||
872 | ipmi_major = rv; | 866 | ipmi_major = rv; |
873 | } | 867 | } |
874 | 868 | ||
875 | devfs_mk_dir(DEVICE_NAME); | ||
876 | |||
877 | rv = ipmi_smi_watcher_register(&smi_watcher); | 869 | rv = ipmi_smi_watcher_register(&smi_watcher); |
878 | if (rv) { | 870 | if (rv) { |
879 | unregister_chrdev(ipmi_major, DEVICE_NAME); | 871 | unregister_chrdev(ipmi_major, DEVICE_NAME); |
@@ -898,7 +890,6 @@ static __exit void cleanup_ipmi(void) | |||
898 | mutex_unlock(®_list_mutex); | 890 | mutex_unlock(®_list_mutex); |
899 | class_destroy(ipmi_class); | 891 | class_destroy(ipmi_class); |
900 | ipmi_smi_watcher_unregister(&smi_watcher); | 892 | ipmi_smi_watcher_unregister(&smi_watcher); |
901 | devfs_remove(DEVICE_NAME); | ||
902 | unregister_chrdev(ipmi_major, DEVICE_NAME); | 893 | unregister_chrdev(ipmi_major, DEVICE_NAME); |
903 | } | 894 | } |
904 | module_exit(cleanup_ipmi); | 895 | module_exit(cleanup_ipmi); |
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index ad26f4b997c5..0aa5d608fe6f 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c | |||
@@ -31,7 +31,6 @@ | |||
31 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 31 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <linux/config.h> | ||
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/errno.h> | 35 | #include <linux/errno.h> |
37 | #include <asm/system.h> | 36 | #include <asm/system.h> |
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c index d0b5c08e7b4e..8d941db83457 100644 --- a/drivers/char/ipmi/ipmi_poweroff.c +++ b/drivers/char/ipmi/ipmi_poweroff.c | |||
@@ -31,7 +31,6 @@ | |||
31 | * with this program; if not, write to the Free Software Foundation, Inc., | 31 | * with this program; if not, write to the Free Software Foundation, Inc., |
32 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 32 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
33 | */ | 33 | */ |
34 | #include <linux/config.h> | ||
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
37 | #include <linux/proc_fs.h> | 36 | #include <linux/proc_fs.h> |
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index bd4f2248b758..f57eba0bf253 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -38,7 +38,6 @@ | |||
38 | * and drives the real SMI state machine. | 38 | * and drives the real SMI state machine. |
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include <linux/config.h> | ||
42 | #include <linux/module.h> | 41 | #include <linux/module.h> |
43 | #include <linux/moduleparam.h> | 42 | #include <linux/moduleparam.h> |
44 | #include <asm/system.h> | 43 | #include <asm/system.h> |
@@ -1042,7 +1041,7 @@ static int std_irq_setup(struct smi_info *info) | |||
1042 | if (info->si_type == SI_BT) { | 1041 | if (info->si_type == SI_BT) { |
1043 | rv = request_irq(info->irq, | 1042 | rv = request_irq(info->irq, |
1044 | si_bt_irq_handler, | 1043 | si_bt_irq_handler, |
1045 | SA_INTERRUPT, | 1044 | IRQF_DISABLED, |
1046 | DEVICE_NAME, | 1045 | DEVICE_NAME, |
1047 | info); | 1046 | info); |
1048 | if (!rv) | 1047 | if (!rv) |
@@ -1052,7 +1051,7 @@ static int std_irq_setup(struct smi_info *info) | |||
1052 | } else | 1051 | } else |
1053 | rv = request_irq(info->irq, | 1052 | rv = request_irq(info->irq, |
1054 | si_irq_handler, | 1053 | si_irq_handler, |
1055 | SA_INTERRUPT, | 1054 | IRQF_DISABLED, |
1056 | DEVICE_NAME, | 1055 | DEVICE_NAME, |
1057 | info); | 1056 | info); |
1058 | if (rv) { | 1057 | if (rv) { |
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index 1a0a19c53605..74a889c58333 100644 --- a/drivers/char/ipmi/ipmi_watchdog.c +++ b/drivers/char/ipmi/ipmi_watchdog.c | |||
@@ -31,7 +31,6 @@ | |||
31 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 31 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <linux/config.h> | ||
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
37 | #include <linux/ipmi.h> | 36 | #include <linux/ipmi.h> |