Re: [PATCH v2] mtd: rawnand: cafe: fix drivers probe/remove methods

From: Miquel Raynal
Date: Thu Jun 09 2022 - 08:44:57 EST


On Fri, 2022-05-20 at 08:44:25 UTC, Peng Wu wrote:
> Driver should call pci_disable_device() if it returns from
> cafe_nand_probe() with error.
>
> Meanwhile, the driver calls pci_enable_device() in
> cafe_nand_probe(), but never calls pci_disable_device()
> during removal.
>
> Signed-off-by: Peng Wu <wupeng58@xxxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel