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 /drivers/spi | |
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi.c | 3 | ||||
-rw-r--r-- | drivers/spi/spidev.c | 1 | ||||
-rw-r--r-- | drivers/spi/tle62x0.c | 1 |
3 files changed, 4 insertions, 1 deletions
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"); | ||