aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod/file2alias.c')
-rw-r--r--scripts/mod/file2alias.c4
1 files changed, 2 insertions, 2 deletions
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 */
661static int do_spi_entry(const char *filename, struct spi_device_id *id, 661static 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}