diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-09-22 19:46:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:43 -0400 |
commit | e0626e3844e8f430fc1a4417f523a00797df7ca6 (patch) | |
tree | 15e62abad725200b3c6ad2462f268c3df09ed711 | |
parent | 8cec03eee4a771f949c70cff07775c9bb21d4642 (diff) |
spi: prefix modalias with "spi:"
This makes it consistent with other buses (platform, i2c, vio, ...). I'm
not sure why we use the prefixes, but there must be a reason.
This was easy enough to do it, and I did it.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Samuel Ortiz <sameo@openedhand.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Acked-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
36 files changed, 38 insertions, 8 deletions
diff --git a/drivers/gpio/max7301.c b/drivers/gpio/max7301.c index 7b82eaae2621..480956f1ca50 100644 --- a/drivers/gpio/max7301.c +++ b/drivers/gpio/max7301.c | |||
@@ -339,3 +339,4 @@ module_exit(max7301_exit); | |||
339 | MODULE_AUTHOR("Juergen Beisert"); | 339 | MODULE_AUTHOR("Juergen Beisert"); |
340 | MODULE_LICENSE("GPL v2"); | 340 | MODULE_LICENSE("GPL v2"); |
341 | MODULE_DESCRIPTION("MAX7301 SPI based GPIO-Expander"); | 341 | MODULE_DESCRIPTION("MAX7301 SPI based GPIO-Expander"); |
342 | MODULE_ALIAS("spi:" DRIVER_NAME); | ||
diff --git a/drivers/gpio/mcp23s08.c b/drivers/gpio/mcp23s08.c index f6fae0e50e65..c6c7aa15f5da 100644 --- a/drivers/gpio/mcp23s08.c +++ b/drivers/gpio/mcp23s08.c | |||
@@ -433,3 +433,4 @@ static void __exit mcp23s08_exit(void) | |||
433 | module_exit(mcp23s08_exit); | 433 | module_exit(mcp23s08_exit); |
434 | 434 | ||
435 | MODULE_LICENSE("GPL"); | 435 | MODULE_LICENSE("GPL"); |
436 | MODULE_ALIAS("spi:mcp23s08"); | ||
diff --git a/drivers/hwmon/lis3lv02d_spi.c b/drivers/hwmon/lis3lv02d_spi.c index 82ebca5a699c..ecd739534f6a 100644 --- a/drivers/hwmon/lis3lv02d_spi.c +++ b/drivers/hwmon/lis3lv02d_spi.c | |||
@@ -139,4 +139,4 @@ module_exit(lis302dl_exit); | |||
139 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); | 139 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); |
140 | MODULE_DESCRIPTION("lis3lv02d SPI glue layer"); | 140 | MODULE_DESCRIPTION("lis3lv02d SPI glue layer"); |
141 | MODULE_LICENSE("GPL"); | 141 | MODULE_LICENSE("GPL"); |
142 | 142 | MODULE_ALIAS("spi:" DRV_NAME); | |
diff --git a/drivers/hwmon/max1111.c b/drivers/hwmon/max1111.c index bfaa665ccf32..9ac497271adf 100644 --- a/drivers/hwmon/max1111.c +++ b/drivers/hwmon/max1111.c | |||
@@ -242,3 +242,4 @@ module_exit(max1111_exit); | |||
242 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); | 242 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); |
243 | MODULE_DESCRIPTION("MAX1111 ADC Driver"); | 243 | MODULE_DESCRIPTION("MAX1111 ADC Driver"); |
244 | MODULE_LICENSE("GPL"); | 244 | MODULE_LICENSE("GPL"); |
245 | MODULE_ALIAS("spi:max1111"); | ||
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index ecaeb7e8e75e..eb83939c705e 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c | |||
@@ -842,3 +842,4 @@ module_exit(ad7877_exit); | |||
842 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 842 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
843 | MODULE_DESCRIPTION("AD7877 touchscreen Driver"); | 843 | MODULE_DESCRIPTION("AD7877 touchscreen Driver"); |
844 | MODULE_LICENSE("GPL"); | 844 | MODULE_LICENSE("GPL"); |
845 | MODULE_ALIAS("spi:ad7877"); | ||
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 5d8a70398807..19b4db7e974d 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c | |||
@@ -779,3 +779,4 @@ module_exit(ad7879_exit); | |||
779 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 779 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
780 | MODULE_DESCRIPTION("AD7879(-1) touchscreen Driver"); | 780 | MODULE_DESCRIPTION("AD7879(-1) touchscreen Driver"); |
781 | MODULE_LICENSE("GPL"); | 781 | MODULE_LICENSE("GPL"); |
782 | MODULE_ALIAS("spi:ad7879"); | ||
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index ba9d38c3f412..09c810999b92 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
@@ -1256,3 +1256,4 @@ module_exit(ads7846_exit); | |||
1256 | 1256 | ||
1257 | MODULE_DESCRIPTION("ADS7846 TouchScreen Driver"); | 1257 | MODULE_DESCRIPTION("ADS7846 TouchScreen Driver"); |
1258 | MODULE_LICENSE("GPL"); | 1258 | MODULE_LICENSE("GPL"); |
1259 | MODULE_ALIAS("spi:ads7846"); | ||
diff --git a/drivers/leds/leds-dac124s085.c b/drivers/leds/leds-dac124s085.c index 098d9aae7259..2913d76ad3d2 100644 --- a/drivers/leds/leds-dac124s085.c +++ b/drivers/leds/leds-dac124s085.c | |||
@@ -148,3 +148,4 @@ module_exit(dac124s085_leds_exit); | |||
148 | MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); | 148 | MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); |
149 | MODULE_DESCRIPTION("DAC124S085 LED driver"); | 149 | MODULE_DESCRIPTION("DAC124S085 LED driver"); |
150 | MODULE_LICENSE("GPL v2"); | 150 | MODULE_LICENSE("GPL v2"); |
151 | MODULE_ALIAS("spi:dac124s085"); | ||
diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c index 016be4938e4c..876288917976 100644 --- a/drivers/mfd/ezx-pcap.c +++ b/drivers/mfd/ezx-pcap.c | |||
@@ -548,3 +548,4 @@ module_exit(ezx_pcap_exit); | |||
548 | MODULE_LICENSE("GPL"); | 548 | MODULE_LICENSE("GPL"); |
549 | MODULE_AUTHOR("Daniel Ribeiro / Harald Welte"); | 549 | MODULE_AUTHOR("Daniel Ribeiro / Harald Welte"); |
550 | MODULE_DESCRIPTION("Motorola PCAP2 ASIC Driver"); | 550 | MODULE_DESCRIPTION("Motorola PCAP2 ASIC Driver"); |
551 | MODULE_ALIAS("spi:ezx-pcap"); | ||
diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index 2e535a0ccd5e..d902d81dde39 100644 --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c | |||
@@ -417,4 +417,4 @@ module_exit(at25_exit); | |||
417 | MODULE_DESCRIPTION("Driver for most SPI EEPROMs"); | 417 | MODULE_DESCRIPTION("Driver for most SPI EEPROMs"); |
418 | MODULE_AUTHOR("David Brownell"); | 418 | MODULE_AUTHOR("David Brownell"); |
419 | MODULE_LICENSE("GPL"); | 419 | MODULE_LICENSE("GPL"); |
420 | 420 | MODULE_ALIAS("spi:at25"); | |
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c index a461017ce5ce..d55fe4fb7935 100644 --- a/drivers/mmc/host/mmc_spi.c +++ b/drivers/mmc/host/mmc_spi.c | |||
@@ -1562,3 +1562,4 @@ MODULE_AUTHOR("Mike Lavender, David Brownell, " | |||
1562 | "Hans-Peter Nilsson, Jan Nikitenko"); | 1562 | "Hans-Peter Nilsson, Jan Nikitenko"); |
1563 | MODULE_DESCRIPTION("SPI SD/MMC host driver"); | 1563 | MODULE_DESCRIPTION("SPI SD/MMC host driver"); |
1564 | MODULE_LICENSE("GPL"); | 1564 | MODULE_LICENSE("GPL"); |
1565 | MODULE_ALIAS("spi:mmc_spi"); | ||
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 43976aa4dbb1..211c27acd01e 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c | |||
@@ -966,3 +966,4 @@ module_exit(dataflash_exit); | |||
966 | MODULE_LICENSE("GPL"); | 966 | MODULE_LICENSE("GPL"); |
967 | MODULE_AUTHOR("Andrew Victor, David Brownell"); | 967 | MODULE_AUTHOR("Andrew Victor, David Brownell"); |
968 | MODULE_DESCRIPTION("MTD DataFlash driver"); | 968 | MODULE_DESCRIPTION("MTD DataFlash driver"); |
969 | MODULE_ALIAS("spi:mtd_dataflash"); | ||
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index 117fc6c12e34..66813c91a720 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -1666,3 +1666,4 @@ MODULE_AUTHOR("Claudio Lanconelli <lanconelli.claudio@eptar.com>"); | |||
1666 | MODULE_LICENSE("GPL"); | 1666 | MODULE_LICENSE("GPL"); |
1667 | module_param_named(debug, debug.msg_enable, int, 0); | 1667 | module_param_named(debug, debug.msg_enable, int, 0); |
1668 | MODULE_PARM_DESC(debug, "Debug verbosity level (0=none, ..., ffff=all)"); | 1668 | MODULE_PARM_DESC(debug, "Debug verbosity level (0=none, ..., ffff=all)"); |
1669 | MODULE_ALIAS("spi:" DRV_NAME); | ||
diff --git a/drivers/net/ks8851.c b/drivers/net/ks8851.c index 547ac7c7479c..237835864357 100644 --- a/drivers/net/ks8851.c +++ b/drivers/net/ks8851.c | |||
@@ -1321,3 +1321,4 @@ MODULE_LICENSE("GPL"); | |||
1321 | 1321 | ||
1322 | module_param_named(message, msg_enable, int, 0); | 1322 | module_param_named(message, msg_enable, int, 0); |
1323 | MODULE_PARM_DESC(message, "Message verbosity level (0=none, 31=all)"); | 1323 | MODULE_PARM_DESC(message, "Message verbosity level (0=none, 31=all)"); |
1324 | MODULE_ALIAS("spi:ks8851"); | ||
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c index 446e327180f8..cb8be8d7abc1 100644 --- a/drivers/net/wireless/libertas/if_spi.c +++ b/drivers/net/wireless/libertas/if_spi.c | |||
@@ -1222,3 +1222,4 @@ MODULE_DESCRIPTION("Libertas SPI WLAN Driver"); | |||
1222 | MODULE_AUTHOR("Andrey Yurovsky <andrey@cozybit.com>, " | 1222 | MODULE_AUTHOR("Andrey Yurovsky <andrey@cozybit.com>, " |
1223 | "Colin McCabe <colin@cozybit.com>"); | 1223 | "Colin McCabe <colin@cozybit.com>"); |
1224 | MODULE_LICENSE("GPL"); | 1224 | MODULE_LICENSE("GPL"); |
1225 | MODULE_ALIAS("spi:libertas_spi"); | ||
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 05458d9249ce..afd26bf06649 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c | |||
@@ -731,3 +731,4 @@ module_exit(p54spi_exit); | |||
731 | 731 | ||
732 | MODULE_LICENSE("GPL"); | 732 | MODULE_LICENSE("GPL"); |
733 | MODULE_AUTHOR("Christian Lamparter <chunkeey@web.de>"); | 733 | MODULE_AUTHOR("Christian Lamparter <chunkeey@web.de>"); |
734 | MODULE_ALIAS("spi:cx3110x"); | ||
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c index 5809ef5b18f8..1103256ad989 100644 --- a/drivers/net/wireless/wl12xx/wl1251_main.c +++ b/drivers/net/wireless/wl12xx/wl1251_main.c | |||
@@ -1426,3 +1426,4 @@ EXPORT_SYMBOL_GPL(wl1251_free_hw); | |||
1426 | MODULE_DESCRIPTION("TI wl1251 Wireles LAN Driver Core"); | 1426 | MODULE_DESCRIPTION("TI wl1251 Wireles LAN Driver Core"); |
1427 | MODULE_LICENSE("GPL"); | 1427 | MODULE_LICENSE("GPL"); |
1428 | MODULE_AUTHOR("Kalle Valo <kalle.valo@nokia.com>"); | 1428 | MODULE_AUTHOR("Kalle Valo <kalle.valo@nokia.com>"); |
1429 | MODULE_ALIAS("spi:wl12xx"); | ||
diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index 8f410e59d9f5..2736b11a1b1e 100644 --- a/drivers/rtc/rtc-ds1305.c +++ b/drivers/rtc/rtc-ds1305.c | |||
@@ -841,3 +841,4 @@ module_exit(ds1305_exit); | |||
841 | 841 | ||
842 | MODULE_DESCRIPTION("RTC driver for DS1305 and DS1306 chips"); | 842 | MODULE_DESCRIPTION("RTC driver for DS1305 and DS1306 chips"); |
843 | MODULE_LICENSE("GPL"); | 843 | MODULE_LICENSE("GPL"); |
844 | MODULE_ALIAS("spi:rtc-ds1305"); | ||
diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index e01b955db077..cdb705057091 100644 --- a/drivers/rtc/rtc-ds1390.c +++ b/drivers/rtc/rtc-ds1390.c | |||
@@ -189,3 +189,4 @@ module_exit(ds1390_exit); | |||
189 | MODULE_DESCRIPTION("Dallas/Maxim DS1390/93/94 SPI RTC driver"); | 189 | MODULE_DESCRIPTION("Dallas/Maxim DS1390/93/94 SPI RTC driver"); |
190 | MODULE_AUTHOR("Mark Jackson <mpfj@mimc.co.uk>"); | 190 | MODULE_AUTHOR("Mark Jackson <mpfj@mimc.co.uk>"); |
191 | MODULE_LICENSE("GPL"); | 191 | MODULE_LICENSE("GPL"); |
192 | MODULE_ALIAS("spi:rtc-ds1390"); | ||
diff --git a/drivers/rtc/rtc-ds3234.c b/drivers/rtc/rtc-ds3234.c index c51589ede5b7..a774ca35b5f7 100644 --- a/drivers/rtc/rtc-ds3234.c +++ b/drivers/rtc/rtc-ds3234.c | |||
@@ -188,3 +188,4 @@ module_exit(ds3234_exit); | |||
188 | MODULE_DESCRIPTION("DS3234 SPI RTC driver"); | 188 | MODULE_DESCRIPTION("DS3234 SPI RTC driver"); |
189 | MODULE_AUTHOR("Dennis Aberilla <denzzzhome@yahoo.com>"); | 189 | MODULE_AUTHOR("Dennis Aberilla <denzzzhome@yahoo.com>"); |
190 | MODULE_LICENSE("GPL"); | 190 | MODULE_LICENSE("GPL"); |
191 | MODULE_ALIAS("spi:ds3234"); | ||
diff --git a/drivers/rtc/rtc-m41t94.c b/drivers/rtc/rtc-m41t94.c index c3a18c58daf6..c8c97a4169d4 100644 --- a/drivers/rtc/rtc-m41t94.c +++ b/drivers/rtc/rtc-m41t94.c | |||
@@ -171,3 +171,4 @@ module_exit(m41t94_exit); | |||
171 | MODULE_AUTHOR("Kim B. Heino <Kim.Heino@bluegiga.com>"); | 171 | MODULE_AUTHOR("Kim B. Heino <Kim.Heino@bluegiga.com>"); |
172 | MODULE_DESCRIPTION("Driver for ST M41T94 SPI RTC"); | 172 | MODULE_DESCRIPTION("Driver for ST M41T94 SPI RTC"); |
173 | MODULE_LICENSE("GPL"); | 173 | MODULE_LICENSE("GPL"); |
174 | MODULE_ALIAS("spi:rtc-m41t94"); | ||
diff --git a/drivers/rtc/rtc-max6902.c b/drivers/rtc/rtc-max6902.c index 36a8ea9ed8ba..657403ebd54a 100644 --- a/drivers/rtc/rtc-max6902.c +++ b/drivers/rtc/rtc-max6902.c | |||
@@ -175,3 +175,4 @@ module_exit(max6902_exit); | |||
175 | MODULE_DESCRIPTION ("max6902 spi RTC driver"); | 175 | MODULE_DESCRIPTION ("max6902 spi RTC driver"); |
176 | MODULE_AUTHOR ("Raphael Assenat"); | 176 | MODULE_AUTHOR ("Raphael Assenat"); |
177 | MODULE_LICENSE ("GPL"); | 177 | MODULE_LICENSE ("GPL"); |
178 | MODULE_ALIAS("spi:rtc-max6902"); | ||
diff --git a/drivers/rtc/rtc-r9701.c b/drivers/rtc/rtc-r9701.c index 42028f233bef..9beba49c3c5b 100644 --- a/drivers/rtc/rtc-r9701.c +++ b/drivers/rtc/rtc-r9701.c | |||
@@ -174,3 +174,4 @@ module_exit(r9701_exit); | |||
174 | MODULE_DESCRIPTION("r9701 spi RTC driver"); | 174 | MODULE_DESCRIPTION("r9701 spi RTC driver"); |
175 | MODULE_AUTHOR("Magnus Damm <damm@opensource.se>"); | 175 | MODULE_AUTHOR("Magnus Damm <damm@opensource.se>"); |
176 | MODULE_LICENSE("GPL"); | 176 | MODULE_LICENSE("GPL"); |
177 | MODULE_ALIAS("spi:rtc-r9701"); | ||
diff --git a/drivers/rtc/rtc-rs5c348.c b/drivers/rtc/rtc-rs5c348.c index dd1e2bc7a472..2099037cb3ea 100644 --- a/drivers/rtc/rtc-rs5c348.c +++ b/drivers/rtc/rtc-rs5c348.c | |||
@@ -251,3 +251,4 @@ MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>"); | |||
251 | MODULE_DESCRIPTION("Ricoh RS5C348 RTC driver"); | 251 | MODULE_DESCRIPTION("Ricoh RS5C348 RTC driver"); |
252 | MODULE_LICENSE("GPL"); | 252 | MODULE_LICENSE("GPL"); |
253 | MODULE_VERSION(DRV_VERSION); | 253 | MODULE_VERSION(DRV_VERSION); |
254 | MODULE_ALIAS("spi:rtc-rs5c348"); | ||
diff --git a/drivers/serial/max3100.c b/drivers/serial/max3100.c index 75ab00631c41..3c30c56aa2e1 100644 --- a/drivers/serial/max3100.c +++ b/drivers/serial/max3100.c | |||
@@ -925,3 +925,4 @@ module_exit(max3100_exit); | |||
925 | MODULE_DESCRIPTION("MAX3100 driver"); | 925 | MODULE_DESCRIPTION("MAX3100 driver"); |
926 | MODULE_AUTHOR("Christian Pellegrin <chripell@evolware.org>"); | 926 | MODULE_AUTHOR("Christian Pellegrin <chripell@evolware.org>"); |
927 | MODULE_LICENSE("GPL"); | 927 | MODULE_LICENSE("GPL"); |
928 | MODULE_ALIAS("spi:max3100"); | ||
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 8518a6eb63f3..49e84860c8da 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/cache.h> | 24 | #include <linux/cache.h> |
25 | #include <linux/mutex.h> | 25 | #include <linux/mutex.h> |
26 | #include <linux/mod_devicetable.h> | ||
26 | #include <linux/spi/spi.h> | 27 | #include <linux/spi/spi.h> |
27 | 28 | ||
28 | 29 | ||
@@ -93,7 +94,7 @@ static int spi_uevent(struct device *dev, struct kobj_uevent_env *env) | |||
93 | { | 94 | { |
94 | const struct spi_device *spi = to_spi_device(dev); | 95 | const struct spi_device *spi = to_spi_device(dev); |
95 | 96 | ||
96 | add_uevent_var(env, "MODALIAS=%s", spi->modalias); | 97 | add_uevent_var(env, "MODALIAS=%s%s", SPI_MODULE_PREFIX, spi->modalias); |
97 | return 0; | 98 | return 0; |
98 | } | 99 | } |
99 | 100 | ||
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 606e7a40a8da..f921bd1109e1 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c | |||
@@ -688,3 +688,4 @@ module_exit(spidev_exit); | |||
688 | MODULE_AUTHOR("Andrea Paterniani, <a.paterniani@swapp-eng.it>"); | 688 | MODULE_AUTHOR("Andrea Paterniani, <a.paterniani@swapp-eng.it>"); |
689 | MODULE_DESCRIPTION("User mode SPI device interface"); | 689 | MODULE_DESCRIPTION("User mode SPI device interface"); |
690 | MODULE_LICENSE("GPL"); | 690 | MODULE_LICENSE("GPL"); |
691 | MODULE_ALIAS("spi:spidev"); | ||
diff --git a/drivers/spi/tle62x0.c b/drivers/spi/tle62x0.c index 455991fbe28f..bf9540f5fb98 100644 --- a/drivers/spi/tle62x0.c +++ b/drivers/spi/tle62x0.c | |||
@@ -329,3 +329,4 @@ module_exit(tle62x0_exit); | |||
329 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 329 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
330 | MODULE_DESCRIPTION("TLE62x0 SPI driver"); | 330 | MODULE_DESCRIPTION("TLE62x0 SPI driver"); |
331 | MODULE_LICENSE("GPL v2"); | 331 | MODULE_LICENSE("GPL v2"); |
332 | MODULE_ALIAS("spi:tle62x0"); | ||
diff --git a/drivers/staging/stlc45xx/stlc45xx.c b/drivers/staging/stlc45xx/stlc45xx.c index 12d414deaad6..be99eb33d817 100644 --- a/drivers/staging/stlc45xx/stlc45xx.c +++ b/drivers/staging/stlc45xx/stlc45xx.c | |||
@@ -2591,3 +2591,4 @@ module_exit(stlc45xx_exit); | |||
2591 | 2591 | ||
2592 | MODULE_LICENSE("GPL"); | 2592 | MODULE_LICENSE("GPL"); |
2593 | MODULE_AUTHOR("Kalle Valo <kalle.valo@nokia.com>"); | 2593 | MODULE_AUTHOR("Kalle Valo <kalle.valo@nokia.com>"); |
2594 | MODULE_ALIAS("spi:cx3110x"); | ||
diff --git a/drivers/video/backlight/corgi_lcd.c b/drivers/video/backlight/corgi_lcd.c index f8a4bb20f41a..2211a852af9c 100644 --- a/drivers/video/backlight/corgi_lcd.c +++ b/drivers/video/backlight/corgi_lcd.c | |||
@@ -639,3 +639,4 @@ module_exit(corgi_lcd_exit); | |||
639 | MODULE_DESCRIPTION("LCD and backlight driver for SHARP C7x0/Cxx00"); | 639 | MODULE_DESCRIPTION("LCD and backlight driver for SHARP C7x0/Cxx00"); |
640 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); | 640 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); |
641 | MODULE_LICENSE("GPL"); | 641 | MODULE_LICENSE("GPL"); |
642 | MODULE_ALIAS("spi:corgi-lcd"); | ||
diff --git a/drivers/video/backlight/ltv350qv.c b/drivers/video/backlight/ltv350qv.c index 2eb206bf73e6..4631ca8fa4a4 100644 --- a/drivers/video/backlight/ltv350qv.c +++ b/drivers/video/backlight/ltv350qv.c | |||
@@ -328,3 +328,4 @@ module_exit(ltv350qv_exit); | |||
328 | MODULE_AUTHOR("Haavard Skinnemoen <hskinnemoen@atmel.com>"); | 328 | MODULE_AUTHOR("Haavard Skinnemoen <hskinnemoen@atmel.com>"); |
329 | MODULE_DESCRIPTION("Samsung LTV350QV LCD Driver"); | 329 | MODULE_DESCRIPTION("Samsung LTV350QV LCD Driver"); |
330 | MODULE_LICENSE("GPL"); | 330 | MODULE_LICENSE("GPL"); |
331 | MODULE_ALIAS("spi:ltv350qv"); | ||
diff --git a/drivers/video/backlight/tdo24m.c b/drivers/video/backlight/tdo24m.c index 51422fc4f606..bbfb502add67 100644 --- a/drivers/video/backlight/tdo24m.c +++ b/drivers/video/backlight/tdo24m.c | |||
@@ -472,3 +472,4 @@ module_exit(tdo24m_exit); | |||
472 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); | 472 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); |
473 | MODULE_DESCRIPTION("Driver for Toppoly TDO24M LCD Panel"); | 473 | MODULE_DESCRIPTION("Driver for Toppoly TDO24M LCD Panel"); |
474 | MODULE_LICENSE("GPL"); | 474 | MODULE_LICENSE("GPL"); |
475 | MODULE_ALIAS("spi:tdo24m"); | ||
diff --git a/drivers/video/backlight/tosa_lcd.c b/drivers/video/backlight/tosa_lcd.c index b7fbc75a62fc..50ec17dfc517 100644 --- a/drivers/video/backlight/tosa_lcd.c +++ b/drivers/video/backlight/tosa_lcd.c | |||
@@ -300,4 +300,4 @@ module_exit(tosa_lcd_exit); | |||
300 | MODULE_AUTHOR("Dmitry Baryshkov"); | 300 | MODULE_AUTHOR("Dmitry Baryshkov"); |
301 | MODULE_LICENSE("GPL v2"); | 301 | MODULE_LICENSE("GPL v2"); |
302 | MODULE_DESCRIPTION("LCD/Backlight control for Sharp SL-6000 PDA"); | 302 | MODULE_DESCRIPTION("LCD/Backlight control for Sharp SL-6000 PDA"); |
303 | 303 | MODULE_ALIAS("spi:tosa-lcd"); | |
diff --git a/drivers/video/backlight/vgg2432a4.c b/drivers/video/backlight/vgg2432a4.c index 8e653b8a6f17..b49063c831e7 100644 --- a/drivers/video/backlight/vgg2432a4.c +++ b/drivers/video/backlight/vgg2432a4.c | |||
@@ -280,5 +280,4 @@ module_exit(vgg2432a4_exit); | |||
280 | MODULE_AUTHOR("Ben Dooks <ben-linux@fluff.org>"); | 280 | MODULE_AUTHOR("Ben Dooks <ben-linux@fluff.org>"); |
281 | MODULE_DESCRIPTION("VGG2432A4 LCD Driver"); | 281 | MODULE_DESCRIPTION("VGG2432A4 LCD Driver"); |
282 | MODULE_LICENSE("GPL v2"); | 282 | MODULE_LICENSE("GPL v2"); |
283 | 283 | MODULE_ALIAS("spi:VGG2432A4"); | |
284 | |||
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index b34f1ef2f1fe..f58e9d836f32 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
@@ -402,6 +402,7 @@ struct i2c_device_id { | |||
402 | /* spi */ | 402 | /* spi */ |
403 | 403 | ||
404 | #define SPI_NAME_SIZE 32 | 404 | #define SPI_NAME_SIZE 32 |
405 | #define SPI_MODULE_PREFIX "spi:" | ||
405 | 406 | ||
406 | struct spi_device_id { | 407 | struct spi_device_id { |
407 | char name[SPI_NAME_SIZE]; | 408 | char name[SPI_NAME_SIZE]; |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 9d446e34519c..62a9025cdcc7 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -657,11 +657,11 @@ static int do_i2c_entry(const char *filename, struct i2c_device_id *id, | |||
657 | return 1; | 657 | return 1; |
658 | } | 658 | } |
659 | 659 | ||
660 | /* Looks like: S */ | 660 | /* Looks like: spi:S */ |
661 | static int do_spi_entry(const char *filename, struct spi_device_id *id, | 661 | static int do_spi_entry(const char *filename, struct spi_device_id *id, |
662 | char *alias) | 662 | char *alias) |
663 | { | 663 | { |
664 | sprintf(alias, "%s", id->name); | 664 | sprintf(alias, SPI_MODULE_PREFIX "%s", id->name); |
665 | 665 | ||
666 | return 1; | 666 | return 1; |
667 | } | 667 | } |