diff options
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index c8bb7eb71c69..627fc384d068 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -722,7 +722,7 @@ static const struct file_operations version_proc_fops = { | |||
722 | 722 | ||
723 | #define PROC_TOSHIBA "toshiba" | 723 | #define PROC_TOSHIBA "toshiba" |
724 | 724 | ||
725 | static void __init add_device(void) | 725 | static void __init create_toshiba_proc_entries(void) |
726 | { | 726 | { |
727 | proc_create("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, &lcd_proc_fops); | 727 | proc_create("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, &lcd_proc_fops); |
728 | proc_create("video", S_IRUGO | S_IWUSR, toshiba_proc_dir, &video_proc_fops); | 728 | proc_create("video", S_IRUGO | S_IWUSR, toshiba_proc_dir, &video_proc_fops); |
@@ -731,7 +731,7 @@ static void __init add_device(void) | |||
731 | proc_create("version", S_IRUGO, toshiba_proc_dir, &version_proc_fops); | 731 | proc_create("version", S_IRUGO, toshiba_proc_dir, &version_proc_fops); |
732 | } | 732 | } |
733 | 733 | ||
734 | static void remove_device(void) | 734 | static void remove_toshiba_proc_entries(void) |
735 | { | 735 | { |
736 | remove_proc_entry("lcd", toshiba_proc_dir); | 736 | remove_proc_entry("lcd", toshiba_proc_dir); |
737 | remove_proc_entry("video", toshiba_proc_dir); | 737 | remove_proc_entry("video", toshiba_proc_dir); |
@@ -905,7 +905,7 @@ static void toshiba_acpi_exit(void) | |||
905 | if (toshiba_backlight_device) | 905 | if (toshiba_backlight_device) |
906 | backlight_device_unregister(toshiba_backlight_device); | 906 | backlight_device_unregister(toshiba_backlight_device); |
907 | 907 | ||
908 | remove_device(); | 908 | remove_toshiba_proc_entries(); |
909 | 909 | ||
910 | if (toshiba_proc_dir) | 910 | if (toshiba_proc_dir) |
911 | remove_proc_entry(PROC_TOSHIBA, acpi_root_dir); | 911 | remove_proc_entry(PROC_TOSHIBA, acpi_root_dir); |
@@ -967,7 +967,7 @@ static int __init toshiba_acpi_init(void) | |||
967 | toshiba_acpi_exit(); | 967 | toshiba_acpi_exit(); |
968 | return -ENODEV; | 968 | return -ENODEV; |
969 | } else { | 969 | } else { |
970 | add_device(); | 970 | create_toshiba_proc_entries(); |
971 | } | 971 | } |
972 | 972 | ||
973 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; | 973 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; |