Commit d0873e6f authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: flexcan: make use of platform_get_device_id()

This patch replaces an open coded pdev->id_entry by platform_get_device_id().
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 08c6d351
...@@ -1132,9 +1132,9 @@ static int flexcan_probe(struct platform_device *pdev) ...@@ -1132,9 +1132,9 @@ static int flexcan_probe(struct platform_device *pdev)
of_id = of_match_device(flexcan_of_match, &pdev->dev); of_id = of_match_device(flexcan_of_match, &pdev->dev);
if (of_id) { if (of_id) {
devtype_data = of_id->data; devtype_data = of_id->data;
} else if (pdev->id_entry->driver_data) { } else if (platform_get_device_id(pdev)->driver_data) {
devtype_data = (struct flexcan_devtype_data *) devtype_data = (struct flexcan_devtype_data *)
pdev->id_entry->driver_data; platform_get_device_id(pdev)->driver_data;
} else { } else {
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment