Commit cccdcea1 authored by Wolfram Sang's avatar Wolfram Sang

i2c: i2c-designware-platdrv: replace platform_driver_probe to support deferred probing

Subsystems like pinctrl and gpio rightfully make use of deferred probing at
core level. Now, deferred drivers won't be retried if they don't have a .probe
function specified in the driver struct. Fix this driver to have that, so the
devices it supports won't get lost in a deferred probe.
Reported-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent d0e639c9
...@@ -270,6 +270,7 @@ static SIMPLE_DEV_PM_OPS(dw_i2c_dev_pm_ops, dw_i2c_suspend, dw_i2c_resume); ...@@ -270,6 +270,7 @@ static SIMPLE_DEV_PM_OPS(dw_i2c_dev_pm_ops, dw_i2c_suspend, dw_i2c_resume);
MODULE_ALIAS("platform:i2c_designware"); MODULE_ALIAS("platform:i2c_designware");
static struct platform_driver dw_i2c_driver = { static struct platform_driver dw_i2c_driver = {
.probe = dw_i2c_probe,
.remove = dw_i2c_remove, .remove = dw_i2c_remove,
.driver = { .driver = {
.name = "i2c_designware", .name = "i2c_designware",
...@@ -282,7 +283,7 @@ static struct platform_driver dw_i2c_driver = { ...@@ -282,7 +283,7 @@ static struct platform_driver dw_i2c_driver = {
static int __init dw_i2c_init_driver(void) static int __init dw_i2c_init_driver(void)
{ {
return platform_driver_probe(&dw_i2c_driver, dw_i2c_probe); return platform_driver_register(&dw_i2c_driver);
} }
subsys_initcall(dw_i2c_init_driver); subsys_initcall(dw_i2c_init_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment