RE: [PATCHv3 net-next 2/3] phy: marvell: Add ethtool statistics counters
From: Shaohui Xie <hidden>
Date: 2015-12-30 04:24:47
From: Shaohui Xie <hidden>
Date: 2015-12-30 04:24:47
Subject: [PATCHv3 net-next 2/3] phy: marvell: Add ethtool statistics counters
+static int marvell_probe(struct phy_device *phydev) {
+ struct marvell_priv *priv;
+
+ priv = devm_kzalloc(&phydev->dev, sizeof(*priv), GFP_KERNEL);
+ if (!priv)
+ return -ENOMEM;
+
+ phydev->priv = priv;
+
+ return 0;
+}
+[S.H] Is a remove() function needed to free the memory? Thanks, Shaohui