Skip to content

Commit bca1732

Browse files
dtorgregkh
authored andcommitted
ptp: do not explicitly set drvdata in ptp_clock_register()
commit 882f312 upstream. We do not need explicitly call dev_set_drvdata(), as it is done for us by device_create(). Acked-by: Richard Cochran <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent a33f9c9 commit bca1732

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/ptp/ptp_clock.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
220220
if (IS_ERR(ptp->dev))
221221
goto no_device;
222222

223-
dev_set_drvdata(ptp->dev, ptp);
224-
225223
err = ptp_populate_sysfs(ptp);
226224
if (err)
227225
goto no_sysfs;

0 commit comments

Comments
 (0)