summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-rk3x.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-10-20 17:16:29 +0300
committerWolfram Sang <wsa@the-dreams.de>2015-10-20 19:15:03 +0300
commit598cf1611b2686243c011207d24aa38e09f1a115 (patch)
tree200128b4eef5c76895d275bd5f6279a5ac04812a /drivers/i2c/busses/i2c-rk3x.c
parent93ae965022bfcdde473a5ff09e48dff7c8dab08c (diff)
downloadlinux-598cf1611b2686243c011207d24aa38e09f1a115.tar.xz
i2c: rk3x: Fix module autoload for OF platform driver
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-rk3x.c')
-rw-r--r--drivers/i2c/busses/i2c-rk3x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c
index 72e97e306bd9..c1935ebd6a9c 100644
--- a/drivers/i2c/busses/i2c-rk3x.c
+++ b/drivers/i2c/busses/i2c-rk3x.c
@@ -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)
{