summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/designware.c4
-rw-r--r--drivers/net/fec_imx.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index 1b16db5806..213fe41359 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -431,7 +431,7 @@ static int dwc_ether_probe(struct device_d *dev)
priv = xzalloc(sizeof(struct dw_eth_dev));
- ret = dev_get_drvdata(dev, (unsigned long *)&drvdata);
+ ret = dev_get_drvdata(dev, (const void **)&drvdata);
if (ret)
return ret;
@@ -489,7 +489,7 @@ static int dwc_ether_probe(struct device_d *dev)
static __maybe_unused struct of_device_id dwc_ether_compatible[] = {
{
.compatible = "snps,dwmac-3.70a",
- .data = (unsigned long)&dwmac_370a_drvdata,
+ .data = &dwmac_370a_drvdata,
}, {
/* sentinel */
}
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 875905a1bf..88d5951b8f 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -652,7 +652,7 @@ static int fec_probe(struct device_d *dev)
enum fec_type type;
int phy_reset;
- ret = dev_get_drvdata(dev, (unsigned long *)&type);
+ ret = dev_get_drvdata(dev, (const void **)&type);
if (ret)
return ret;
@@ -762,19 +762,19 @@ static void fec_remove(struct device_d *dev)
static __maybe_unused struct of_device_id imx_fec_dt_ids[] = {
{
.compatible = "fsl,imx25-fec",
- .data = FEC_TYPE_IMX27,
+ .data = (void *)FEC_TYPE_IMX27,
}, {
.compatible = "fsl,imx27-fec",
- .data = FEC_TYPE_IMX27,
+ .data = (void *)FEC_TYPE_IMX27,
}, {
.compatible = "fsl,imx28-fec",
- .data = FEC_TYPE_IMX28,
+ .data = (void *)FEC_TYPE_IMX28,
}, {
.compatible = "fsl,imx6q-fec",
- .data = FEC_TYPE_IMX6,
+ .data = (void *)FEC_TYPE_IMX6,
}, {
.compatible = "fsl,imx6sx-fec",
- .data = FEC_TYPE_IMX6,
+ .data = (void *)FEC_TYPE_IMX6,
}, {
/* sentinel */
}