linux/drivers/input/misc
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
..
apanel.c Input: add driver for Fujitsu application buttons 2008-01-21 01:11:07 -05:00
ati_remote2.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
ati_remote.c Input: drop redundant includes of moduleparam.h 2008-01-21 01:11:07 -05:00
atlas_btns.c Input: atlas_btns - add support for loadable keymaps 2008-01-21 01:11:06 -05:00
cobalt_btns.c Input: cobalt_btns - assorted fixes 2008-03-14 11:52:37 -04:00
hp_sdc_rtc.c [PATCH] mark struct file_operations const 3 2007-02-12 09:48:45 -08:00
ixp4xx-beeper.c ixp4xx-beeper: add MODULE_ALIAS 2008-03-28 14:45:22 -07:00
Kconfig input: add I2C to config since the driver makes several i2c*() calls 2008-03-04 16:35:18 -08:00
keyspan_remote.c Input: drop redundant includes of moduleparam.h 2008-01-21 01:11:07 -05:00
m68kspkr.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
Makefile Input: add driver for Fujitsu application buttons 2008-01-21 01:11:07 -05:00
map_to_7segment.h Input: move USB miscellaneous devices under drivers/input/misc 2007-05-08 01:41:29 -04:00
pcspkr.c Use i8253.c lock for PC speaker on MIPS, too. 2007-11-02 19:39:18 -07:00
powermate.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
sparcspkr.c [SPARC64]: Fix section error in sparcspkr 2008-01-21 22:34:31 -08:00
uinput.c Input: pull input.h into uinpit.h 2007-05-03 00:55:34 -04:00
wistron_btns.c leds: Standardise LED naming scheme 2008-02-07 09:47:00 +00:00
yealink.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
yealink.h Input: move USB miscellaneous devices under drivers/input/misc 2007-05-08 01:41:29 -04:00