diff options
author | Richard Cochran <richardcochran@gmail.com> | 2012-09-22 07:02:03 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-22 19:42:38 (GMT) |
commit | 1ef761582c074448bae5be97abde5934667e7710 (patch) | |
tree | fc4679a8f28897043be34fda0465562be66d7f55 /drivers/ptp/ptp_ixp46x.c | |
parent | 5c35bad5ffe5accde6b0ef4468b39e1db0806b94 (diff) | |
download | linux-1ef761582c074448bae5be97abde5934667e7710.tar.xz |
ptp: link the phc device to its parent device
PTP Hardware Clock devices appear as class devices in sysfs. This patch
changes the registration API to use the parent device, clarifying the
clock's relationship to the underlying device.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/ptp_ixp46x.c')
-rw-r--r-- | drivers/ptp/ptp_ixp46x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_ixp46x.c b/drivers/ptp/ptp_ixp46x.c index e03c406..d49b851 100644 --- a/drivers/ptp/ptp_ixp46x.c +++ b/drivers/ptp/ptp_ixp46x.c @@ -298,7 +298,7 @@ static int __init ptp_ixp_init(void) ixp_clock.caps = ptp_ixp_caps; - ixp_clock.ptp_clock = ptp_clock_register(&ixp_clock.caps); + ixp_clock.ptp_clock = ptp_clock_register(&ixp_clock.caps, NULL); if (IS_ERR(ixp_clock.ptp_clock)) return PTR_ERR(ixp_clock.ptp_clock); |