projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f0f42
)
ptp: do not explicitly set drvdata in ptp_clock_register()
author
Dmitry Torokhov
<
[email protected]
>
Tue, 14 Feb 2017 18:23:31 +0000
(10:23 -0800)
committer
David S. Miller
<
[email protected]
>
Fri, 17 Feb 2017 16:03:05 +0000
(11:03 -0500)
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]
>
drivers/ptp/ptp_clock.c
patch
|
blob
|
history
diff --git
a/drivers/ptp/ptp_clock.c
b/drivers/ptp/ptp_clock.c
index 9c13381b69662c499d0e9a679ce3eeb71c3c6d3d..b4e5e8022c292a3c15bf51dfb390a8263a3a8993 100644
(file)
--- 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;