]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/base/platform.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[karo-tx-linux.git] / drivers / base / platform.c
index c2456839214aee8065beaed9752d29d04371fbac..a102152301c8327b347e32d11230d635d3655cc2 100644 (file)
@@ -847,7 +847,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *a,
        struct platform_device  *pdev = to_platform_device(dev);
        int len;
 
-       len = of_device_get_modalias(dev, buf, PAGE_SIZE -1);
+       len = of_device_modalias(dev, buf, PAGE_SIZE);
        if (len != -ENODEV)
                return len;