Skip to content

Commit c393bef

Browse files
djbwrafaeljw
authored andcommitted
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: 6cb9441 ("ACPI: APEI: EINJ: Transition to the faux device interface") Signed-off-by: Dan Williams <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 19272b3 commit c393bef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/base/faux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ static struct device_driver faux_driver = {
8686
.name = "faux_driver",
8787
.bus = &faux_bus_type,
8888
.probe_type = PROBE_FORCE_SYNCHRONOUS,
89+
.suppress_bind_attrs = true,
8990
};
9091

9192
static void faux_device_release(struct device *dev)

0 commit comments

Comments
 (0)