[PATCH v5 19/39] mtd: rawnand: add support for ts72xx

Miquel Raynal miquel.raynal at bootlin.com
Wed Nov 22 05:08:03 PST 2023


Hi Andy,

> > +	int ret;
> > +
> > +	ret = mtd_device_unregister(nand_to_mtd(chip));
> > +	WARN_ON(ret);  
> 
> Is this a requirement by MTD to have return value being checked?

Yes, for now this is the preferred way, with the hope some day to turn
the return value into void.

Thanks,
Miquèl



More information about the linux-mtd mailing list