Commit 14b5842e authored by Tobias Klauser's avatar Tobias Klauser Committed by Dmitry Torokhov

Input: altera_ps2 - use of_match_ptr()

Instead of having to define the match table to NULL if CONFIG_OF isn't
set, use the of_match_ptr() macro which will do this for us.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 4a533835
...@@ -180,8 +180,6 @@ static const struct of_device_id altera_ps2_match[] = { ...@@ -180,8 +180,6 @@ static const struct of_device_id altera_ps2_match[] = {
{}, {},
}; };
MODULE_DEVICE_TABLE(of, altera_ps2_match); MODULE_DEVICE_TABLE(of, altera_ps2_match);
#else /* CONFIG_OF */
#define altera_ps2_match NULL
#endif /* CONFIG_OF */ #endif /* CONFIG_OF */
/* /*
...@@ -193,7 +191,7 @@ static struct platform_driver altera_ps2_driver = { ...@@ -193,7 +191,7 @@ static struct platform_driver altera_ps2_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = altera_ps2_match, .of_match_table = of_match_ptr(altera_ps2_match),
}, },
}; };
module_platform_driver(altera_ps2_driver); module_platform_driver(altera_ps2_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