aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-03-17 02:31:25 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-17 02:34:00 -0400
commit14b5842ebf552d242b0238f70d0730a564065fb0 (patch)
tree511a82c07295410626fca3b0fcb1b6fbcc197e90
parent4a53383565e340254479ce4d47bc181884ddf6c3 (diff)
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: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--drivers/input/serio/altera_ps2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/serio/altera_ps2.c b/drivers/input/serio/altera_ps2.c
index 35864c6130bb..cc11f4efe119 100644
--- a/drivers/input/serio/altera_ps2.c
+++ b/drivers/input/serio/altera_ps2.c
@@ -180,8 +180,6 @@ static const struct of_device_id altera_ps2_match[] = {
180 {}, 180 {},
181}; 181};
182MODULE_DEVICE_TABLE(of, altera_ps2_match); 182MODULE_DEVICE_TABLE(of, altera_ps2_match);
183#else /* CONFIG_OF */
184#define altera_ps2_match NULL
185#endif /* CONFIG_OF */ 183#endif /* CONFIG_OF */
186 184
187/* 185/*
@@ -193,7 +191,7 @@ static struct platform_driver altera_ps2_driver = {
193 .driver = { 191 .driver = {
194 .name = DRV_NAME, 192 .name = DRV_NAME,
195 .owner = THIS_MODULE, 193 .owner = THIS_MODULE,
196 .of_match_table = altera_ps2_match, 194 .of_match_table = of_match_ptr(altera_ps2_match),
197 }, 195 },
198}; 196};
199module_platform_driver(altera_ps2_driver); 197module_platform_driver(altera_ps2_driver);