Skip to content
Snippets Groups Projects
Commit 2a0f9c4c authored by Helge Deller's avatar Helge Deller Committed by Dmitry Torokhov
Browse files

Input: inport, logibm - use KERN_INFO when reporting missing mouse


Many mouse drivers are often compiled (e.g. in Linux distributions) into the
kernel at the same time just to make sure that at least one driver will suceed
in find it's mouse device. Nevertheless, only the inport and logitech busmouse
mouse drivers report with KERN_ERR log level if the mouse wasn't found. They
should use KERN_INFO instead, because it's not an error if the mouse isn't
attached at all.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 2a3e480d
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ static int __init inport_init(void) ...@@ -144,7 +144,7 @@ static int __init inport_init(void)
b = inb(INPORT_SIGNATURE_PORT); b = inb(INPORT_SIGNATURE_PORT);
c = inb(INPORT_SIGNATURE_PORT); c = inb(INPORT_SIGNATURE_PORT);
if (a == b || a != c) { if (a == b || a != c) {
printk(KERN_ERR "inport.c: Didn't find InPort mouse at %#x\n", INPORT_BASE); printk(KERN_INFO "inport.c: Didn't find InPort mouse at %#x\n", INPORT_BASE);
err = -ENODEV; err = -ENODEV;
goto err_release_region; goto err_release_region;
} }
......
...@@ -134,7 +134,7 @@ static int __init logibm_init(void) ...@@ -134,7 +134,7 @@ static int __init logibm_init(void)
udelay(100); udelay(100);
if (inb(LOGIBM_SIGNATURE_PORT) != LOGIBM_SIGNATURE_BYTE) { if (inb(LOGIBM_SIGNATURE_PORT) != LOGIBM_SIGNATURE_BYTE) {
printk(KERN_ERR "logibm.c: Didn't find Logitech busmouse at %#x\n", LOGIBM_BASE); printk(KERN_INFO "logibm.c: Didn't find Logitech busmouse at %#x\n", LOGIBM_BASE);
err = -ENODEV; err = -ENODEV;
goto err_release_region; goto err_release_region;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment