projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08c6d35
)
can: flexcan: make use of platform_get_device_id()
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 4 Mar 2014 21:04:22 +0000
(22:04 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Thu, 6 Mar 2014 21:20:44 +0000
(22:20 +0100)
This patch replaces an open coded pdev->id_entry by platform_get_device_id().
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/flexcan.c
b/drivers/net/can/flexcan.c
index efa1bbc9a1ec0a992a5cdf313f85f231f7baac82..c94d698b73c2d85bfcc23823d4d453e0d5a491b6 100644
(file)
--- 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 (p
dev->id_entry
->driver_data) {
+ } else if (p
latform_get_device_id(pdev)
->driver_data) {
devtype_data = (struct flexcan_devtype_data *)
- p
dev->id_entry
->driver_data;
+ p
latform_get_device_id(pdev)
->driver_data;
} else {
return -ENODEV;
}