We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a65f9 commit 74d2fb7Copy full SHA for 74d2fb7
drivers/tty/serial/vt8500_serial.c
@@ -623,17 +623,14 @@ static int vt8500_serial_probe(struct platform_device *pdev)
623
struct vt8500_port *vt8500_port;
624
struct resource *mmres, *irqres;
625
struct device_node *np = pdev->dev.of_node;
626
- const struct of_device_id *match;
627
const unsigned int *flags;
628
int ret;
629
int port;
630
631
- match = of_match_device(wmt_dt_ids, &pdev->dev);
632
- if (!match)
+ flags = of_device_get_match_data(&pdev->dev);
+ if (!flags)
633
return -EINVAL;
634
635
- flags = match->data;
636
-
637
mmres = platform_get_resource(pdev, IORESOURCE_MEM, 0);
638
irqres = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
639
if (!mmres || !irqres)
0 commit comments