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 fa934fc commit 618bf2bCopy full SHA for 618bf2b
drivers/tty/serial/8250/8250_ingenic.c
@@ -209,16 +209,14 @@ static int ingenic_uart_probe(struct platform_device *pdev)
209
struct uart_8250_port uart = {};
210
struct ingenic_uart_data *data;
211
const struct ingenic_uart_config *cdata;
212
- const struct of_device_id *match;
213
struct resource *regs;
214
int irq, err, line;
215
216
- match = of_match_device(of_match, &pdev->dev);
217
- if (!match) {
+ cdata = of_device_get_match_data(&pdev->dev);
+ if (!cdata) {
218
dev_err(&pdev->dev, "Error: No device match found\n");
219
return -ENODEV;
220
}
221
- cdata = match->data;
222
223
irq = platform_get_irq(pdev, 0);
224
if (irq < 0)
0 commit comments