From: Dmitry Torokhov Date: Tue, 14 Feb 2017 18:23:31 +0000 (-0800) Subject: ptp: do not explicitly set drvdata in ptp_clock_register() X-Git-Tag: v4.14-rc1~1463^2~81^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=882f312dc0751c973db26478f07f082c584d16aa;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Dmitry Torokhov Signed-off-by: David S. Miller --- 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;