[PATCH v1 0/2] x86/platform/olpc: xo15: Bind to a platform device instead of an ACPI one

From: Rafael J. Wysocki

Date: Fri May 08 2026 - 14:03:06 EST


Hi All,

This series is part of a larger effort to switch over all drivers using
the struct acpi_driver interface to the more common struct platform_driver
interface and eliminate the former. The background is explained in
Documentation/driver-api/acpi/acpi-drivers.rst and in the changelog of
the patch that introduced the above document:

https://lore.kernel.org/all/2396510.ElGaqSPkdT@rafael.j.wysocki/

The bottom line is that the kernel would be better off without struct
acpi_driver and so it is better to get rid of it.

This series carries out driver conversion of the x86 platform OLPC XO 1.5
driver.

Patch [1/2] fixes a possible wakeup source object leak on driver removal.

Patch [2/2] converts the driver to using struct platform_driver for device
binding.

Off topic: I'm not really sure why the driver is there in arch/x86 because
there really is nothing specific to x86 in it other than relying on some
ACPI hardware to be present, but that's more about the platform than about
the arch. I guess it my as well be moved to platform/x86/ (there is one
xo15-related driver in there already).

Thanks!