]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i2c: rk3x: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Tue, 20 Oct 2015 14:16:29 +0000 (15:16 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 20 Oct 2015 16:15:03 +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>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rk3x.c

index 72e97e306bd925f8421dfa4be3979c1d25667d9c..c1935ebd6a9c38971b6539cc1d1ae03dfc276d17 100644 (file)
@@ -858,6 +858,7 @@ static const struct of_device_id rk3x_i2c_match[] = {
        { .compatible = "rockchip,rk3288-i2c", .data = (void *)&soc_data[2] },
        {},
 };
+MODULE_DEVICE_TABLE(of, rk3x_i2c_match);
 
 static int rk3x_i2c_probe(struct platform_device *pdev)
 {