Drivers: hv: vmbus: Convert acpi_device to more generic platform_device
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Mon, 20 Mar 2023 07:47:38 +0000 (00:47 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 17 Apr 2023 19:16:22 +0000 (19:16 +0000)
commit9c8434238041e18d53fd6911826973b37656a8d1
tree089282dc5aef54b8a112734dc8233d8f54aa240c
parent1f6277bf716cc5ba0e3fa0c3e0af1adb4160fb5d
Drivers: hv: vmbus: Convert acpi_device to more generic platform_device

VMBus driver code currently has direct dependency on ACPI and struct
acpi_device.  As a staging step toward optionally configuring based on
Devicetree instead of ACPI, use a more generic platform device to reduce
the dependency on ACPI where possible, though the dependency on ACPI
is not completely removed.  Also rename the function vmbus_acpi_remove()
to the more generic vmbus_mmio_remove().

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1679298460-11855-4-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c