projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/xgene: fix Wvoid-pointer-to-enum-cast warning
[platform/kernel/linux-starfive.git]
/
drivers
/
net
/
ethernet
/
apm
/
xgene
/
xgene_enet_main.c
diff --git
a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
index
41d96f4
..
4d4140b
100644
(file)
--- a/
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
+++ b/
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
@@
-2041,7
+2041,7
@@
static int xgene_enet_probe(struct platform_device *pdev)
of_id = of_match_device(xgene_enet_of_match, &pdev->dev);
if (of_id) {
- pdata->enet_id = (
enum xgene_enet_id
)of_id->data;
+ pdata->enet_id = (
uintptr_t
)of_id->data;
}
#ifdef CONFIG_ACPI
else {