]> www.infradead.org Git - users/jedix/linux-maple.git/commit
driver core: faux: Suppress bind attributes
authorDan Williams <dan.j.williams@intel.com>
Sat, 7 Jun 2025 03:32:26 +0000 (20:32 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Jun 2025 17:23:25 +0000 (19:23 +0200)
commitc393befa14ab26596fb86d702566d648832dae06
treee487c6b329bbc06e7e48c76fb242182a768b3141
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
driver core: faux: Suppress bind attributes

faux_device_create() is almost a suitable candidate to replace
platform_driver_probe() if not for the fact that faux_device_create()
supports dynamic attach/detach of the driver.

Drop the bind attributes with the expectation that simple faux devices can
always assume that the device is permanently bound at create, and only
unbound at 'destroy'.

The acpi-einj driver depends on static bind.

Fixes: 6cb9441bfe8d ("ACPI: APEI: EINJ: Transition to the faux device interface")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20250607033228.1475625-2-dan.j.williams@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/faux.c