NAND driver for AT91RM9200

Thomas Gleixner tglx at linutronix.de
Tue Feb 21 03:32:42 EST 2006


On Tue, 2006-02-21 at 10:06 +0200, Andrew Victor wrote:
> Hopefully the driver is now acceptable for addition to the MTD CVS /
> mainline kernels.  Thanks.

Can you please fix up the lines with >80 characters ?

> +	/* Allocate memory for the device structure */
> +	host = kmalloc(sizeof(struct at91_nand_host), GFP_KERNEL);
> +	if (!host) {
> +		printk(KERN_ERR "at91_nand: failed to allocate device structure.\n");
> +		return -ENOMEM;
> +	}
> +	memset(host, 0, sizeof(struct at91_nand_host));

Please use kzalloc

	tglx






More information about the linux-mtd mailing list