@@ -19,6 +19,7 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
+#include <linux/property.h>
#include <linux/workqueue.h>
#include <linux/notifier.h>
#include <linux/slab.h>
@@ -371,9 +372,9 @@ static bool dw8250_idma_filter(struct dma_chan *chan, void *param)
static void dw8250_quirks(struct uart_port *p, struct dw8250_data *data)
{
struct device_node *np = p->dev->of_node;
+ unsigned long quirks = (unsigned long)device_get_match_data(p->dev);
if (np) {
- unsigned long quirks = (unsigned long)of_device_get_match_data(p->dev);
int id;
/* get index of serial line, if found in DT aliases */