|
@@ -224,6 +224,11 @@ static int rockchip_saradc_probe(struct platform_device *pdev)
|
|
|
info = iio_priv(indio_dev);
|
|
|
|
|
|
match = of_match_device(rockchip_saradc_match, &pdev->dev);
|
|
|
+ if (!match) {
|
|
|
+ dev_err(&pdev->dev, "failed to match device\n");
|
|
|
+ return -ENODEV;
|
|
|
+ }
|
|
|
+
|
|
|
info->data = match->data;
|
|
|
|
|
|
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|