]> www.infradead.org Git - users/willy/pagecache.git/commit
ptp: vmclock: Clean up miscdev and ptp clock through devres
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 7 Feb 2025 09:39:05 +0000 (10:39 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Feb 2025 09:20:52 +0000 (10:20 +0100)
commit9a884c3800b207bac36e27be4ec7277c78a84568
tree3dc6d422af88aeedf48cbf2b78b55883c23e90a0
parent39e926c3a21b25af6cae479fbb752f193240ce03
ptp: vmclock: Clean up miscdev and ptp clock through devres

Most resources owned by the vmclock device are managed through devres.
Only the miscdev and ptp clock are managed manually.
This makes the code slightly harder to understand than necessary.

Switch them over to devres and remove the now unnecessary drvdata.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/ptp/ptp_vmclock.c