Skip to content
Snippets Groups Projects
Commit 9f15444f authored by Tobias Klauser's avatar Tobias Klauser Committed by Grant Likely
Browse files

tty: serial: altera_jtaguart: Add device tree support


Advertise the possibility to use this driver with device tree if
CONFIG_OF is set.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 7c9325d7
No related branches found
No related tags found
No related merge requests found
Altera JTAG UART
Required properties:
- compatible : should be "ALTR,juart-1.0"
......@@ -465,12 +465,23 @@ static int __devexit altera_jtaguart_remove(struct platform_device *pdev)
return 0;
}
#ifdef CONFIG_OF
static struct of_device_id altera_jtaguart_match[] = {
{ .compatible = "ALTR,juart-1.0", },
{},
};
MODULE_DEVICE_TABLE(of, altera_jtaguart_match);
#else
#define altera_jtaguart_match NULL
#endif /* CONFIG_OF */
static struct platform_driver altera_jtaguart_platform_driver = {
.probe = altera_jtaguart_probe,
.remove = __devexit_p(altera_jtaguart_remove),
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
.name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = altera_jtaguart_match,
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment