linux/drivers/input
Alessandro Zummo 589499c04b ixp4xx-beeper: add MODULE_ALIAS
The following patch allows ixp4xx-beeper to be loaded by udev
automatically when compiled as a module with kernel versions 2.4.24 and
greater.

This patch is required because 43cc71eed1
("platform: prefix MODALIAS with "platform:"") changed the modalias
string to have the extra prefix.

LKG7102D7:~# udevinfo -a -p /sys/devices/platform/ixp4xx-beeper.4

 looking at device '/devices/platform/ixp4xx-beeper.4':
   KERNEL=="ixp4xx-beeper.4"
   SUBSYSTEM=="platform"
   DRIVER==""
   ATTR{modalias}=="platform:ixp4xx-beeper"

udev therefore tries to modprobe platform:ixp4xx-beeper instead of
ixp4xx-beeper.

LKG7102D7:~# udevtest /sys/devices/platform/ixp4xx-beeper.4
...
import_uevent_var: import into environment: 'PHYSDEVBUS=platform'
import_uevent_var: import into environment: 'MODALIAS=platform:ixp4xx-beeper'
main: looking at device '/devices/platform/ixp4xx-beeper.4' from
subsystem 'platform'
wait_for_sysfs: file '/sys/devices/platform/ixp4xx-beeper.4/bus'
appeared after 0 loops
main: run: 'socket:/org/kernel/udev/monitor'
main: run: '/sbin/modprobe --use-blacklist platform:ixp4xx-beeper'

With this patch, depmod adds an alias line (see below) to
modules.alias which allows modprobe to load the right module.

alias platform:ixp4xx-beeper ixp4xx-beeper

Signed-off-by: Gordon Farquharson <gordonfarquharson@gmail.com>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: David Brownell <david-b@pacbell.net>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-28 14:45:22 -07:00
..
gameport gameport: remove duplicate include 2008-02-03 16:03:50 +02:00
joystick mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
keyboard jonada720: remove duplicate include 2008-02-03 16:08:09 +02:00
misc ixp4xx-beeper: add MODULE_ALIAS 2008-03-28 14:45:22 -07:00
mouse Input: ALPS - fix forward/back buttons reversed on Acer 5520-5290 2008-03-18 00:39:55 -04:00
serio Input: i8042 - add SNI RM support 2008-03-14 11:54:06 -04:00
tablet Input: wacom - add support for Bamboo1, BambooFun, and Cintiq 12WX 2008-03-14 11:54:38 -04:00
touchscreen Input: ads7846 - fix uninitialized var warning 2008-03-14 11:54:13 -04:00
apm-power.c Input: add input event to APM event bridge 2008-01-30 16:33:59 -05:00
evbug.c Input: rework handle creation code 2007-04-12 01:29:46 -04:00
evdev.c Input: Add proper locking when changing device's keymap 2008-01-21 01:11:06 -05:00
ff-core.c Input: force feedback - make sure effect is present before playing 2007-05-03 00:51:10 -04:00
ff-memless.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
fixp-arith.h changed email 2007-10-20 00:47:32 +02:00
input-polldev.c Input: implement proper timer rounding for polled devices 2008-01-21 01:11:07 -05:00
input.c Input: constify function pointer tables (seq_operations) 2008-01-31 00:43:32 -05:00
joydev.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
Kconfig Input: add input event to APM event bridge 2008-01-30 16:33:59 -05:00
Makefile Input: add input event to APM event bridge 2008-01-30 16:33:59 -05:00
mousedev.c Input: mousedev - use BIT_MASK instead of BIT 2008-01-30 16:33:40 -05:00