mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
ptp: do not explicitly set drvdata in ptp_clock_register()
commit 882f312dc0 upstream.
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>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a33f9c9687
commit
bca173248f
@@ -220,8 +220,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;
|
||||
|
||||
Reference in New Issue
Block a user