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

Input: serio - remove CONFIG_HOTPLUG ifdefs

Remove conditional code based on CONFIG_HOTPLUG being false. It's
always on now in preparation of it going away as an option.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Bill Pemberton and committed by
Dmitry Torokhov
58b45d16 5e7fe820

-11
-11
drivers/input/serio/serio.c
··· 891 891 return serio_match_port(serio_drv->id_table, serio); 892 892 } 893 893 894 - #ifdef CONFIG_HOTPLUG 895 - 896 894 #define SERIO_ADD_UEVENT_VAR(fmt, val...) \ 897 895 do { \ 898 896 int err = add_uevent_var(env, fmt, val); \ ··· 917 919 return 0; 918 920 } 919 921 #undef SERIO_ADD_UEVENT_VAR 920 - 921 - #else 922 - 923 - static int serio_uevent(struct device *dev, struct kobj_uevent_env *env) 924 - { 925 - return -ENODEV; 926 - } 927 - 928 - #endif /* CONFIG_HOTPLUG */ 929 922 930 923 #ifdef CONFIG_PM 931 924 static int serio_suspend(struct device *dev)