aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/mv88x201x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/chelsio/mv88x201x.c')
-rw-r--r--drivers/net/chelsio/mv88x201x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/chelsio/mv88x201x.c b/drivers/net/chelsio/mv88x201x.c
index db5034282782..bf7d8538885d 100644
--- a/drivers/net/chelsio/mv88x201x.c
+++ b/drivers/net/chelsio/mv88x201x.c
@@ -205,11 +205,11 @@ static struct cphy *mv88x201x_phy_create(adapter_t *adapter, int phy_addr,
205 struct mdio_ops *mdio_ops) 205 struct mdio_ops *mdio_ops)
206{ 206{
207 u32 val; 207 u32 val;
208 struct cphy *cphy = kmalloc(sizeof(*cphy), GFP_KERNEL); 208 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL);
209 209
210 if (!cphy) 210 if (!cphy)
211 return NULL; 211 return NULL;
212 memset(cphy, 0, sizeof(*cphy)); 212
213 cphy_init(cphy, adapter, phy_addr, &mv88x201x_ops, mdio_ops); 213 cphy_init(cphy, adapter, phy_addr, &mv88x201x_ops, mdio_ops);
214 214
215 /* Commands the PHY to enable XFP's clock. */ 215 /* Commands the PHY to enable XFP's clock. */