[PATCH] mtd: elbc nand: use drvdata to only remove the relevant chip

Artem Bityutskiy dedekind1 at gmail.com
Thu Jun 7 06:08:42 EDT 2012


On Wed, 2012-06-06 at 18:36 -0500, Scott Wood wrote:
> Previously the remove method was looping and removing all chips,
> which is obviously not the right thing to do -- left over from when
> the driver was organized differently and that was the remove method for
> the entire controller.  This would result in bad things happening if
> you have more than one NAND chip, and remove the module.
> 
> This also fixes priv->dev to properly point to the chip's device rather than
> the controller's.  Until now priv->dev was only used for error/debug prints
> (and it's an improvement there), so this shouldn't break anything.
> 
> Signed-off-by: Scott Wood <scottwood at freescale.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120607/87589af6/attachment.sig>


More information about the linux-mtd mailing list