Re: [PATCH][next] mtd: phram: only call platform_driver_unregister if phram_setup fails
From: Miquel Raynal
Date: Thu Dec 05 2024 - 05:47:42 EST
Hi,
On 30/10/2024 at 17:21:49 GMT, Colin Ian King <colin.i.king@xxxxxxxxx> wrote:
> The check on ret and call to platform_driver_unregister is only required
> in the code path where MODULE is not defined. Fix this by moving this
> code into the relevant place after the call to phram_setup.
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>
Applied to mtd/next.
Thanks,
Miquèl