summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/fec_imx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 844033347a..5e8e5ca197 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -543,10 +543,10 @@ static int fec_probe(struct device_d *dev)
#ifdef CONFIG_ARCH_IMX27
PCCR0 |= PCCR0_FEC_EN;
#endif
- edev = (struct eth_device *)xzalloc(sizeof(struct eth_device));
- dev->type_data = edev;
- fec = (struct fec_priv *)malloc(sizeof(*fec));
- edev->priv = fec;
+ edev = (struct eth_device *)xzalloc(sizeof(struct eth_device));
+ dev->type_data = edev;
+ fec = (struct fec_priv *)xzalloc(sizeof(*fec));
+ edev->priv = fec;
edev->open = fec_open,
edev->init = fec_init,
edev->send = fec_send,