PTP: convert class code to use dev_groups
The dev_attrs field of struct class is going away soon, dev_groups should be used instead. This converts the ptp class code to use the correct field. Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -330,7 +330,7 @@ static int __init ptp_init(void)
|
||||
goto no_region;
|
||||
}
|
||||
|
||||
ptp_class->dev_attrs = ptp_dev_attrs;
|
||||
ptp_class->dev_groups = ptp_groups;
|
||||
pr_info("PTP clock support registered\n");
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user