diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-14 10:23:31 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-17 11:03:05 -0500 |
commit | 882f312dc0751c973db26478f07f082c584d16aa (patch) | |
tree | 98138b73119e8a679632588fe09a9ffaf5adddc6 | |
parent | 01f0f4253469e1b1e80bc84ae64728c294534836 (diff) | |
download | op-kernel-dev-882f312dc0751c973db26478f07f082c584d16aa.zip op-kernel-dev-882f312dc0751c973db26478f07f082c584d16aa.tar.gz |
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
device_create().
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/ptp/ptp_clock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 9c13381..b4e5e80 100644 --- a/drivers/ptp/ptp_clock.c +++ b/drivers/ptp/ptp_clock.c @@ -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; |