From: Marc Kleine-Budde Date: Tue, 4 Mar 2014 21:04:22 +0000 (+0100) Subject: can: flexcan: make use of platform_get_device_id() X-Git-Tag: v3.15-rc1~113^2~206^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0873e6fc06686cf2dfb9adabb6ca65e9967c60f;p=platform%2Fkernel%2Flinux-exynos.git 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: Marc Kleine-Budde --- diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index efa1bbc..c94d698 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -1132,9 +1132,9 @@ static int flexcan_probe(struct platform_device *pdev) of_id = of_match_device(flexcan_of_match, &pdev->dev); if (of_id) { 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 *) - pdev->id_entry->driver_data; + platform_get_device_id(pdev)->driver_data; } else { return -ENODEV; }