summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2014-03-04 22:04:22 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-03-06 22:20:44 +0100
commitd0873e6fc06686cf2dfb9adabb6ca65e9967c60f (patch)
treec33324a15d2626ebc3f37cfe428236e4df034c21 /drivers/net/can
parent08c6d35154069becb01243176fb72b3bc60ff3cb (diff)
downloadop-kernel-dev-d0873e6fc06686cf2dfb9adabb6ca65e9967c60f.zip
op-kernel-dev-d0873e6fc06686cf2dfb9adabb6ca65e9967c60f.tar.gz
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 <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/flexcan.c4
1 files changed, 2 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud