diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 1041cb83d67a28940e76aff953986a823d918412..84c2861d6f4dde2a602e44f292c6efbd248c602b 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -53,7 +53,7 @@ modalias_show(struct device *dev, struct device_attribute *a, char *buf) { const struct spi_device *spi = to_spi_device(dev); - return sprintf(buf, "%s\n", spi->modalias); + return sprintf(buf, "%s%s\n", SPI_MODULE_PREFIX, spi->modalias); } static struct device_attribute spi_dev_attrs[] = {