PATCH: at91_nand rdy_pin fix

Andrew Victor andrew at sanpeople.com
Thu May 24 03:47:08 EDT 2007


hi Ivan,

> -       nand_chip->dev_ready = at91_nand_device_ready;
> +
> +       if (host->board->rdy_pin)
> +               nand_chip->dev_ready = at91_nand_device_ready;
> +       else
> +               nand_chip->dev_ready = NULL;

Patch looks correct.

Since the at91_nand_host structure is allocated with kzalloc(),
nand_chip->dev_ready is already initialized to NULL.
So we don't really need the "else" part.


Regards,
  Andrew Victor






More information about the linux-mtd mailing list