]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ptp: create "pins" together with the rest of attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 14 Feb 2017 18:23:34 +0000 (10:23 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:03:46 +0000 (19:03 +0100)
commit890346cfd82bc28ad29c56c715e89eb835995997
tree66220192d488f6388baba7569210e826a81d4c26
parent6ad6729bb3d9149e7e14b2181adebfc01e5d668d
ptp: create "pins" together with the rest of attributes

commit 85a66e55019583da1e0f18706b7a8281c9f6de5b upstream.

Let's switch to using device_create_with_groups(), which will allow us to
create "pins" attribute group together with the rest of ptp device
attributes, and before userspace gets notified about ptp device creation.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/ptp/ptp_clock.c
drivers/ptp/ptp_private.h
drivers/ptp/ptp_sysfs.c