Netdev List
 help / color / mirror / Atom feed
* [PATCH v1] ptp: vmw: Drop ptp_vmw_acpi_device
@ 2026-05-12 16:41 Rafael J. Wysocki
  0 siblings, 0 replies; only message in thread
From: Rafael J. Wysocki @ 2026-05-12 16:41 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Nick Shi, Ajay Kaher, Alexey Makhalov,
	Broadcom internal kernel review list, Richard Cochran,
	Andrew Lunn, David S. Miller, Eric Dumazet, Paolo Abeni, netdev,
	Linux ACPI, LKML

From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>

Static variable ptp_vmw_acpi_device in the ptp_vmw driver is assigned,
but never used, so drop it.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/ptp/ptp_vmw.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/drivers/ptp/ptp_vmw.c
+++ b/drivers/ptp/ptp_vmw.c
@@ -18,7 +18,6 @@
 #define VMWARE_CMD_PCLK(nr) ((nr << 16) | 97)
 #define VMWARE_CMD_PCLK_GETTIME VMWARE_CMD_PCLK(0)
 
-static struct acpi_device *ptp_vmw_acpi_device;
 static struct ptp_clock *ptp_vmw_clock;
 
 
@@ -91,8 +90,6 @@ static int ptp_vmw_acpi_probe(struct pla
 		pr_err("failed to register ptp clock\n");
 		return PTR_ERR(ptp_vmw_clock);
 	}
-
-	ptp_vmw_acpi_device = ACPI_COMPANION(&pdev->dev);
 	return 0;
 }
 




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-12 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 16:41 [PATCH v1] ptp: vmw: Drop ptp_vmw_acpi_device Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox