提交 5508ef72 编写于 作者: W Wolfram Sang

staging: iio: adc: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 9feba53f
...@@ -141,7 +141,6 @@ static struct platform_driver ad7606_driver = { ...@@ -141,7 +141,6 @@ static struct platform_driver ad7606_driver = {
.id_table = ad7606_driver_ids, .id_table = ad7606_driver_ids,
.driver = { .driver = {
.name = "ad7606", .name = "ad7606",
.owner = THIS_MODULE,
.pm = AD7606_PAR_PM_OPS, .pm = AD7606_PAR_PM_OPS,
}, },
}; };
......
...@@ -204,7 +204,6 @@ static struct platform_driver lpc32xx_adc_driver = { ...@@ -204,7 +204,6 @@ static struct platform_driver lpc32xx_adc_driver = {
.probe = lpc32xx_adc_probe, .probe = lpc32xx_adc_probe,
.driver = { .driver = {
.name = MOD_NAME, .name = MOD_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(lpc32xx_adc_match), .of_match_table = of_match_ptr(lpc32xx_adc_match),
}, },
}; };
......
...@@ -1664,7 +1664,6 @@ static int mxs_lradc_remove(struct platform_device *pdev) ...@@ -1664,7 +1664,6 @@ static int mxs_lradc_remove(struct platform_device *pdev)
static struct platform_driver mxs_lradc_driver = { static struct platform_driver mxs_lradc_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = mxs_lradc_dt_ids, .of_match_table = mxs_lradc_dt_ids,
}, },
.probe = mxs_lradc_probe, .probe = mxs_lradc_probe,
......
...@@ -389,7 +389,6 @@ static struct platform_driver spear_adc_driver = { ...@@ -389,7 +389,6 @@ static struct platform_driver spear_adc_driver = {
.remove = spear_adc_remove, .remove = spear_adc_remove,
.driver = { .driver = {
.name = SPEAR_ADC_MOD_NAME, .name = SPEAR_ADC_MOD_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(spear_adc_dt_ids), .of_match_table = of_match_ptr(spear_adc_dt_ids),
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部