Re: [PATCH 2/7] PCI: mediatek-gen3: Add error path for probe and resume driver callbacks

From: Bartosz Golaszewski

Date: Wed Feb 25 2026 - 03:24:28 EST


On Wed, 25 Feb 2026 08:22:19 +0100, Chen-Yu Tsai <wenst@xxxxxxxxxxxx> said:
> The probe and resume callbacks currently do teardown in the conditional
> block directly. This is going to get ugly when the pwrctrl calls are
> added.
>
> Move the teardown to proper error cleanup paths.
>
> Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>
> ---

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>