diff options
| -rw-r--r-- | drivers/tty/serial/st-asc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index 183879825695..2ff4b1bb922d 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c | |||
| @@ -724,12 +724,14 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev) | |||
| 724 | return &asc_ports[id]; | 724 | return &asc_ports[id]; |
| 725 | } | 725 | } |
| 726 | 726 | ||
| 727 | #ifdef CONFIG_OF | ||
| 727 | static struct of_device_id asc_match[] = { | 728 | static struct of_device_id asc_match[] = { |
| 728 | { .compatible = "st,asc", }, | 729 | { .compatible = "st,asc", }, |
| 729 | {}, | 730 | {}, |
| 730 | }; | 731 | }; |
| 731 | 732 | ||
| 732 | MODULE_DEVICE_TABLE(of, asc_match); | 733 | MODULE_DEVICE_TABLE(of, asc_match); |
| 734 | #endif | ||
| 733 | 735 | ||
| 734 | static int asc_serial_probe(struct platform_device *pdev) | 736 | static int asc_serial_probe(struct platform_device *pdev) |
| 735 | { | 737 | { |
