Commit
8905aaafb4b5d9764c5b4b54c7d03eb41bb0a7e9
Exists in
master
and in
39 other branches
8mp-imx_5.4.70_2.3.0, 8qm-imx_5.4.70_2.3.0, emb_imx_lf-5.15.y, emb_lf-6.1.y, imx_3.0.35_4.1.0, imx_3.10.17_1.0.1_ga, imx_3.10.53_1.1.0_ga, imx_3.14.28_1.0.0_ga, imx_4.1.15_1.0.0_ga, pitx_8mp_lf-5.10.y, rt-smarc-imx_4.1.15_1.0.0_ga, rt_linux_5.15.71, smarc-8m-android-11.0.0_2.0.0, smarc-imx6_4.14.98_2.0.0_ga, smarc-imx6_4.9.88_2.0.0_ga, smarc-imx7_4.14.98_2.0.0_ga, smarc-imx7_4.9.11_1.0.0_ga, smarc-imx7_4.9.88_2.0.0_ga, smarc-imx_3.10.53_1.1.0_ga, smarc-imx_3.14.28_1.0.0_ga, smarc-imx_4.1.15_1.0.0_ga, smarc-imx_4.9.11_1.0.0_ga, smarc-imx_4.9.51_imx8m_ga, smarc-imx_4.9.88_2.0.0_ga, smarc-m6.0.1_2.1.0-ga, smarc-n7.1.2_2.0.0-ga, smarc-rel_imx_4.1.15_1.2.0_ga, smarc_8m_00d0_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.14.78_1.0.0_ga, smarc_8m_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.19.35_1.1.0, smarc_8mm_imx_4.14.78_1.0.0_ga, smarc_8mm_imx_4.14.98_2.0.0_ga, smarc_8mm_imx_4.19.35_1.1.0, smarc_8mm_imx_5.4.24_2.1.0, smarc_8mp_lf-5.10.y, smarc_8mq_imx_5.4.24_2.1.0, smarc_8mq_lf-5.10.y, smarc_imx_lf-5.15.y
Input: uinput - add devname alias to allow module on-demand load
Recent modprobe and udev versions allow to create device nodes
for modules which are not loaded. Only the first access will cause
the in-kernel module loader to pull-in the module. Systems which
never access the device node will not needlessly load the module,
and no longer need init scripts or other facilities to unconditionally
load it.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Showing
3 changed files
with
3 additions
and
1 deletions
Side-by-side Diff
... |
... |
@@ -811,6 +811,8 @@ |
811
|
811 |
.minor = UINPUT_MINOR, |
812
|
812 |
.name = UINPUT_NAME, |
813
|
813 |
}; |
|
814 |
+MODULE_ALIAS_MISCDEV(UINPUT_MINOR); |
|
815 |
+MODULE_ALIAS("devname:" UINPUT_NAME); |
814
|
816 |
|
815
|
817 |
static int __init uinput_init(void) |
816
|
818 |
{ |
... |
... |
@@ -33,6 +33,7 @@ |
33
|
33 |
#define MWAVE_MINOR 219 /* ACP/Mwave Modem */ |
34
|
34 |
#define MPT_MINOR 220 |
35
|
35 |
#define MPT2SAS_MINOR 221 |
|
36 |
+#define UINPUT_MINOR 223 |
36
|
37 |
#define HPET_MINOR 228 |
37
|
38 |
#define FUSE_MINOR 229 |
38
|
39 |
#define KVM_MINOR 232 |
... |
... |
@@ -37,7 +37,6 @@ |
37
|
37 |
#define UINPUT_VERSION 3 |
38
|
38 |
|
39
|
39 |
#ifdef __KERNEL__ |
40
|
|
-#define UINPUT_MINOR 223 |
41
|
40 |
#define UINPUT_NAME "uinput" |
42
|
41 |
#define UINPUT_BUFFER_SIZE 16 |
43
|
42 |
#define UINPUT_NUM_REQUESTS 16 |