[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <VI1PR04MB1664FF303D53D9472E36452BE8FD0@VI1PR04MB1664.eurprd04.prod.outlook.com>
Date: Wed, 30 Dec 2015 04:24:40 +0000
From: Shaohui Xie <shaohui.xie@....com>
To: Andrew Lunn <andrew@...n.ch>, David Miller <davem@...emloft.net>,
"Florian Fainelli" <f.fainelli@...il.com>
CC: netdev <netdev@...r.kernel.org>
Subject: RE: [PATCHv3 net-next 2/3] phy: marvell: Add ethtool statistics
counters
> 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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists