Thread (8 messages) 8 messages, 3 authors, 2015-12-31

RE: [PATCHv3 net-next 2/3] phy: marvell: Add ethtool statistics counters

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help