summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/altera_jtaguart.c
diff options
context:
space:
mode:
authorBen Dooks2011-08-03 11:11:43 +0200
committerGrant Likely2011-09-30 03:31:48 +0200
commit85888069cf5d0f21312e3ee730458a5e3a553509 (patch)
treecc5a7d07524c0f200e671749efea663a991c2f58 /drivers/tty/serial/altera_jtaguart.c
parentOF: Add of_match_ptr() macro (diff)
downloadkernel-qcow2-linux-85888069cf5d0f21312e3ee730458a5e3a553509.tar.gz
kernel-qcow2-linux-85888069cf5d0f21312e3ee730458a5e3a553509.tar.xz
kernel-qcow2-linux-85888069cf5d0f21312e3ee730458a5e3a553509.zip
tty: use of_match_ptr() for of_match_table entry
Use the new of_match_ptr() macro for the of_match_table pointer entry to avoid having to #dfine match NULL Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/tty/serial/altera_jtaguart.c')
-rw-r--r--drivers/tty/serial/altera_jtaguart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c
index 60e049b041a7..207520069256 100644
--- a/drivers/tty/serial/altera_jtaguart.c
+++ b/drivers/tty/serial/altera_jtaguart.c
@@ -472,8 +472,6 @@ static struct of_device_id altera_jtaguart_match[] = {
{},
};
MODULE_DEVICE_TABLE(of, altera_jtaguart_match);
-#else
-#define altera_jtaguart_match NULL
#endif /* CONFIG_OF */
static struct platform_driver altera_jtaguart_platform_driver = {
@@ -482,7 +480,7 @@ static struct platform_driver altera_jtaguart_platform_driver = {
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
- .of_match_table = altera_jtaguart_match,
+ .of_match_table = of_match_ptr(altera_jtaguart_match),
},
};