Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] INPUT: remove the input_class structure, as it is unused.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+3 -16
+3 -15
drivers/input/input.c
··· 39 39 EXPORT_SYMBOL(input_accept_process); 40 40 EXPORT_SYMBOL(input_flush_device); 41 41 EXPORT_SYMBOL(input_event); 42 - EXPORT_SYMBOL(input_class); 43 42 EXPORT_SYMBOL_GPL(input_dev_class); 44 43 45 44 #define INPUT_DEVICES 256 ··· 926 927 .open = input_open_file, 927 928 }; 928 929 929 - struct class *input_class; 930 - 931 930 static int __init input_init(void) 932 931 { 933 932 int err; ··· 936 939 return err; 937 940 } 938 941 939 - input_class = class_create(THIS_MODULE, "input"); 940 - if (IS_ERR(input_class)) { 941 - printk(KERN_ERR "input: unable to register input class\n"); 942 - err = PTR_ERR(input_class); 943 - goto fail1; 944 - } 945 - 946 942 err = input_proc_init(); 947 943 if (err) 948 - goto fail2; 944 + goto fail1; 949 945 950 946 err = register_chrdev(INPUT_MAJOR, "input", &input_fops); 951 947 if (err) { 952 948 printk(KERN_ERR "input: unable to register char major %d", INPUT_MAJOR); 953 - goto fail3; 949 + goto fail2; 954 950 } 955 951 956 952 return 0; 957 953 958 - fail3: input_proc_exit(); 959 - fail2: class_destroy(input_class); 954 + fail2: input_proc_exit(); 960 955 fail1: class_unregister(&input_dev_class); 961 956 return err; 962 957 } ··· 957 968 { 958 969 input_proc_exit(); 959 970 unregister_chrdev(INPUT_MAJOR, "input"); 960 - class_destroy(input_class); 961 971 class_unregister(&input_dev_class); 962 972 } 963 973
-1
include/linux/input.h
··· 1074 1074 dev->absbit[LONG(axis)] |= BIT(axis); 1075 1075 } 1076 1076 1077 - extern struct class *input_class; 1078 1077 extern struct class input_dev_class; 1079 1078 1080 1079 #endif