summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 9443329ae..09ccbc365 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -140,9 +140,9 @@ sub detect() {
my ($r, $wacom) = mouseconfig(); return ($r, $wacom) if $r;
require pci_probing::main;
- if (my ($c) = grep { $_->[1] =~ /usb-/ } pci_probing::main::probe('')) {
+ if (my ($c) = grep { /usb-/ } map { $_->[1] } pci_probing::main::probe('')) {
eval {
- modules::load($c->[1], "SERIAL_USB");
+ modules::load($c, "SERIAL_USB");
modules::load("usbmouse");
modules::load("mousedev");
};
@@ -155,7 +155,7 @@ sub detect() {
}
modules::unload("mousedev");
modules::unload("usbmouse");
- modules::unload($c->[1], 'remove_alias');
+ modules::unload($c, 'remove_alias');
}
#- defaults to generic ttyS0