devicetree: fix build error on drivers/tty/serial/altera_jtaguart.c
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 5 Oct 2011 17:18:40 +0000 (11:18 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 5 Oct 2011 17:21:31 +0000 (11:21 -0600)
commit6b3754d6183797263bc6b28884323cf7842a8961
tree8a18485e16aa4f1338dad42d5afdaa759d5ff729
parent9514a56753a8d379db36bed424588e1842f2bfcc
devicetree: fix build error on drivers/tty/serial/altera_jtaguart.c

This patch fixes the following build error caused by commit
85888069cf5d ("tty: use of_match_ptr() for of_match_table entry").
The problem was a missing #include <linux/of.h> which is where
of_match_ptr() is defined.

drivers/tty/serial/altera_jtaguart.c:483:3: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration]
drivers/tty/serial/altera_jtaguart.c:483:34: error: 'altera_jtaguart_match' undeclared here (not in a function)

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Tobias Klauser <tklauser@distanz.ch> (maintainer:ALTERA UART/JTAG...)
Cc: Alan Cox <alan@linux.intel.com> (maintainer:SERIAL DRIVERS)
drivers/tty/serial/altera_jtaguart.c