mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
e8bbc3497e
commit
d5c1d60697
1 changed files with 1 additions and 0 deletions
|
@ -640,6 +640,7 @@ static const struct of_device_id sprd_i2c_of_match[] = {
|
||||||
{ .compatible = "sprd,sc9860-i2c", },
|
{ .compatible = "sprd,sc9860-i2c", },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, sprd_i2c_of_match);
|
||||||
|
|
||||||
static struct platform_driver sprd_i2c_driver = {
|
static struct platform_driver sprd_i2c_driver = {
|
||||||
.probe = sprd_i2c_probe,
|
.probe = sprd_i2c_probe,
|
||||||
|
|
Loading…
Reference in a new issue