Patch "ptp: do not explicitly set drvdata in ptp_clock_register()" has been added to the 4.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ptp: do not explicitly set drvdata in ptp_clock_register()

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ptp-do-not-explicitly-set-drvdata-in-ptp_clock_register.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From foo@baz Wed 13 May 2020 08:37:35 AM CEST
From: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Date: Tue, 14 Feb 2017 10:23:31 -0800
Subject: ptp: do not explicitly set drvdata in ptp_clock_register()

From: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

commit 882f312dc0751c973db26478f07f082c584d16aa upstream.

We do not need explicitly call dev_set_drvdata(), as it is done for us by
device_create().

Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Ben Hutchings <ben.hutchings@xxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/ptp/ptp_clock.c |    2 --
 1 file changed, 2 deletions(-)

--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -220,8 +220,6 @@ struct ptp_clock *ptp_clock_register(str
 	if (IS_ERR(ptp->dev))
 		goto no_device;
 
-	dev_set_drvdata(ptp->dev, ptp);
-
 	err = ptp_populate_sysfs(ptp);
 	if (err)
 		goto no_sysfs;


Patches currently in stable-queue which might be from dmitry.torokhov@xxxxxxxxx are

queue-4.4/ptp-do-not-explicitly-set-drvdata-in-ptp_clock_register.patch
queue-4.4/ptp-use-is_visible-method-to-hide-unused-attributes.patch
queue-4.4/ptp-create-pins-together-with-the-rest-of-attributes.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux