Re: [PATCH v2 04/13] regulator: Introduce tps68470-regulator driver

From: Mark Brown
Date: Mon Oct 11 2021 - 07:02:27 EST


On Sat, Oct 09, 2021 at 06:05:39PM +0200, Hans de Goede wrote:

> +/*
> + * The ACPI tps68470 probe-ordering depends on the clk/gpio/regulator drivers
> + * registering before the drivers for the camera-sensors which use them bind.
> + * subsys_initcall() ensures this when the drivers are builtin.
> + */
> +static int __init tps68470_regulator_init(void)
> +{
> + return platform_driver_register(&tps68470_regulator_driver);
> +}
> +subsys_initcall(tps68470_regulator_init);

If this actually matters it is still going to get broken when the driver
is built as a module. We've not been doing this given probe deferral.

Attachment: signature.asc
Description: PGP signature