diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 35928d0843d93f9f104d5e724eee7b95ffc1c3a7..397dd2959bfd3437f589d3209a32d481996077d6 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -58,6 +58,10 @@ modalias_show(struct device *dev, struct device_attribute *a, char *buf) const struct spi_device *spi = to_spi_device(dev); int len; + len = of_device_modalias(dev, buf, PAGE_SIZE); + if (len != -ENODEV) + return len; + len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1); if (len != -ENODEV) return len;