summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorBixuan Cui <cuibixuan@huawei.com>2021-04-10 11:50:44 +0800
committerWolfram Sang <wsa@kernel.org>2021-04-13 14:34:58 +0200
commitd5c1d60697a5f591bf717fd84d077585f0bff778 (patch)
treedc6e1d59132969160bf5118398b342703830215b /drivers/i2c
parente8bbc3497e63a887231f88b58e7aeb56906dc1c4 (diff)
downloadlinux-d5c1d60697a5f591bf717fd84d077585f0bff778.tar.gz
linux-d5c1d60697a5f591bf717fd84d077585f0bff778.tar.bz2
linux-d5c1d60697a5f591bf717fd84d077585f0bff778.zip
i2c: sprd: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com> Reviewed-by: Baolin Wang <baolin.wang7@gmail.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-sprd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c
index 2917fecf6c80..9f77d1ddbaf8 100644
--- a/drivers/i2c/busses/i2c-sprd.c
+++ b/drivers/i2c/busses/i2c-sprd.c
@@ -640,6 +640,7 @@ static const struct of_device_id sprd_i2c_of_match[] = {
{ .compatible = "sprd,sc9860-i2c", },
{},
};
+MODULE_DEVICE_TABLE(of, sprd_i2c_of_match);
static struct platform_driver sprd_i2c_driver = {
.probe = sprd_i2c_probe,