Commit 882f312d authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by David S. Miller

ptp: do not explicitly set drvdata in ptp_clock_register()

We do not need explicitly call dev_set_drvdata(), as it is done for us by
Acked-by: default avatarRichard Cochran <>
Signed-off-by: default avatarDmitry Torokhov <>
Signed-off-by: default avatarDavid S. Miller <>
parent 01f0f425
......@@ -227,8 +227,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
if (IS_ERR(ptp->dev))
goto no_device;
dev_set_drvdata(ptp->dev, ptp);
err = ptp_populate_sysfs(ptp);
if (err)
goto no_sysfs;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment