Commit bda4e71b authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Marcelo Henrique Cerri

ptp: do not explicitly set drvdata in ptp_clock_register()

BugLink: https://bugs.launchpad.net/bugs/1881356

commit 882f312d upstream.

We do not need explicitly call dev_set_drvdata(), as it is done for us by
device_create().
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKelsey Skunberg <kelsey.skunberg@canonical.com>
parent 97bf48a6
...@@ -220,8 +220,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, ...@@ -220,8 +220,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
if (IS_ERR(ptp->dev)) if (IS_ERR(ptp->dev))
goto no_device; goto no_device;
dev_set_drvdata(ptp->dev, ptp);
err = ptp_populate_sysfs(ptp); err = ptp_populate_sysfs(ptp);
if (err) if (err)
goto no_sysfs; 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