Commit 4f3688dc authored by Zhu Wang's avatar Zhu Wang Committed by Alexandre Belloni
parent df9c16b5
...@@ -473,7 +473,6 @@ static const struct armada38x_rtc_data armada8k_data = { ...@@ -473,7 +473,6 @@ static const struct armada38x_rtc_data armada8k_data = {
.alarm = ALARM2, .alarm = ALARM2,
}; };
#ifdef CONFIG_OF
static const struct of_device_id armada38x_rtc_of_match_table[] = { static const struct of_device_id armada38x_rtc_of_match_table[] = {
{ {
.compatible = "marvell,armada-380-rtc", .compatible = "marvell,armada-380-rtc",
...@@ -486,7 +485,6 @@ static const struct of_device_id armada38x_rtc_of_match_table[] = { ...@@ -486,7 +485,6 @@ static const struct of_device_id armada38x_rtc_of_match_table[] = {
{} {}
}; };
MODULE_DEVICE_TABLE(of, armada38x_rtc_of_match_table); MODULE_DEVICE_TABLE(of, armada38x_rtc_of_match_table);
#endif
static __init int armada38x_rtc_probe(struct platform_device *pdev) static __init int armada38x_rtc_probe(struct platform_device *pdev)
{ {
...@@ -576,7 +574,7 @@ static struct platform_driver armada38x_rtc_driver = { ...@@ -576,7 +574,7 @@ static struct platform_driver armada38x_rtc_driver = {
.driver = { .driver = {
.name = "armada38x-rtc", .name = "armada38x-rtc",
.pm = &armada38x_rtc_pm_ops, .pm = &armada38x_rtc_pm_ops,
.of_match_table = of_match_ptr(armada38x_rtc_of_match_table), .of_match_table = armada38x_rtc_of_match_table,
}, },
}; };
......
...@@ -118,7 +118,7 @@ MODULE_DEVICE_TABLE(of, aspeed_rtc_match); ...@@ -118,7 +118,7 @@ MODULE_DEVICE_TABLE(of, aspeed_rtc_match);
static struct platform_driver aspeed_rtc_driver = { static struct platform_driver aspeed_rtc_driver = {
.driver = { .driver = {
.name = "aspeed-rtc", .name = "aspeed-rtc",
.of_match_table = of_match_ptr(aspeed_rtc_match), .of_match_table = aspeed_rtc_match,
}, },
}; };
......
...@@ -641,7 +641,7 @@ static struct platform_driver at91_rtc_driver = { ...@@ -641,7 +641,7 @@ static struct platform_driver at91_rtc_driver = {
.driver = { .driver = {
.name = "at91_rtc", .name = "at91_rtc",
.pm = &at91_rtc_pm_ops, .pm = &at91_rtc_pm_ops,
.of_match_table = of_match_ptr(at91_rtc_dt_ids), .of_match_table = at91_rtc_dt_ids,
}, },
}; };
......
...@@ -534,7 +534,7 @@ static struct platform_driver at91_rtc_driver = { ...@@ -534,7 +534,7 @@ static struct platform_driver at91_rtc_driver = {
.driver = { .driver = {
.name = "rtc-at91sam9", .name = "rtc-at91sam9",
.pm = &at91_rtc_pm_ops, .pm = &at91_rtc_pm_ops,
.of_match_table = of_match_ptr(at91_rtc_dt_ids), .of_match_table = at91_rtc_dt_ids,
}, },
}; };
......
...@@ -538,7 +538,7 @@ MODULE_DEVICE_TABLE(of, nct3018y_of_match); ...@@ -538,7 +538,7 @@ MODULE_DEVICE_TABLE(of, nct3018y_of_match);
static struct i2c_driver nct3018y_driver = { static struct i2c_driver nct3018y_driver = {
.driver = { .driver = {
.name = "rtc-nct3018y", .name = "rtc-nct3018y",
.of_match_table = of_match_ptr(nct3018y_of_match), .of_match_table = nct3018y_of_match,
}, },
.probe = nct3018y_probe, .probe = nct3018y_probe,
.id_table = nct3018y_id, .id_table = nct3018y_id,
......
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