]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i2c: stu300: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Tue, 20 Oct 2015 14:16:30 +0000 (15:16 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 20 Oct 2015 16:15:39 +0000 (18:15 +0200)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-stu300.c

index 4885da9e929824011756f97851f4c27a5c2b4aab..460c134832ac3039e9fd246f9263203b93453622 100644 (file)
@@ -977,6 +977,7 @@ static const struct of_device_id stu300_dt_match[] = {
        { .compatible = "st,ddci2c" },
        {},
 };
+MODULE_DEVICE_TABLE(of, stu300_dt_match);
 
 static struct platform_driver stu300_i2c_driver = {
        .driver = {