[PATCH 4/8] atmel_nand: Clean up and fix probe() error path

Andrew Victor avictor.za at gmail.com
Mon Jun 9 16:17:12 EDT 2008


hi,

>> Then the driver can do
>>        if (host->board->ecc_regs)
>>                host->ecc = host->board->ecc_regs;
>>        else if (regs)
>>                host->ecc = ioremap(regs->start, regs->end - regs->start + 1);
>>
>>        if (hard_ecc && !host->ecc)
>>                printk("Hardware ECC not available\n");
>>
>> Right? I think we use a similar trick in the atmel_serial driver too.
>
> It may be the best solution indeed.

Agreed.


Regards,
  Andrew Victor



More information about the linux-mtd mailing list