diff options
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_devintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c index 4bb9af736fba..6dc765dc5413 100644 --- a/drivers/char/ipmi/ipmi_devintf.c +++ b/drivers/char/ipmi/ipmi_devintf.c | |||
@@ -520,7 +520,7 @@ MODULE_PARM_DESC(ipmi_major, "Sets the major number of the IPMI device. By" | |||
520 | " interface. Other values will set the major device number" | 520 | " interface. Other values will set the major device number" |
521 | " to that value."); | 521 | " to that value."); |
522 | 522 | ||
523 | static struct class *ipmi_class; | 523 | static struct class_simple *ipmi_class; |
524 | 524 | ||
525 | static void ipmi_new_smi(int if_num) | 525 | static void ipmi_new_smi(int if_num) |
526 | { | 526 | { |
@@ -534,7 +534,7 @@ static void ipmi_new_smi(int if_num) | |||
534 | 534 | ||
535 | static void ipmi_smi_gone(int if_num) | 535 | static void ipmi_smi_gone(int if_num) |
536 | { | 536 | { |
537 | class_simple_device_remove(ipmi_class, MKDEV(ipmi_major, if_num)); | 537 | class_simple_device_remove(MKDEV(ipmi_major, if_num)); |
538 | devfs_remove("ipmidev/%d", if_num); | 538 | devfs_remove("ipmidev/%d", if_num); |
539 | } | 539 | } |
540 | 540 | ||