i2c: sprd: Add missing MODULE_DEVICE_TABLE
PATCH 1/1 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 <[email protected]>
Signed-off-by Bixuan Cui <[email protected]>
--- drivers/i2c/busses/i2c-sprd.c | 1 + 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-sprd.c +1 -0
@@ -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,
Quoted 7 lines · Bixuan Cui
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>
LGTM.
Reviewed-by Baolin Wang <[email protected]>
Quoted 17 lines
--- drivers/i2c/busses/i2c-sprd.c | 1 + 1 file changed, 1 insertion(+)drivers/i2c/busses/i2c-sprd.c +1
-0@@ -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,
Signature · 1 line
Baolin Wang
Wolfram Sang
AppliedQuoted 6 lines · Bixuan Cui
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>
Applied to for-next, thanks!