Loading drivers/mtd/nand/pxa3xx_nand.c +9 −9 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <asm/io.h> #include <asm/irq.h> #include <linux/io.h> #include <linux/irq.h> #include <asm/dma.h> #include <asm/arch/pxa-regs.h> Loading Loading @@ -494,7 +494,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info) info->data_size << 2); break; default: printk(KERN_ERR "%s: invalid state %d\n", __FUNCTION__, printk(KERN_ERR "%s: invalid state %d\n", __func__, info->state); return -EINVAL; } Loading Loading @@ -1054,14 +1054,14 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) pdata = pdev->dev.platform_data; if (pdata == NULL) { if (!pdata) { dev_err(&pdev->dev, "no platform data defined\n"); return -ENODEV; } mtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct pxa3xx_nand_info), GFP_KERNEL); if (mtd == NULL) { if (!mtd) { dev_err(&pdev->dev, "failed to allocate memory\n"); return -ENOMEM; } Loading Loading
drivers/mtd/nand/pxa3xx_nand.c +9 −9 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <asm/io.h> #include <asm/irq.h> #include <linux/io.h> #include <linux/irq.h> #include <asm/dma.h> #include <asm/arch/pxa-regs.h> Loading Loading @@ -494,7 +494,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info) info->data_size << 2); break; default: printk(KERN_ERR "%s: invalid state %d\n", __FUNCTION__, printk(KERN_ERR "%s: invalid state %d\n", __func__, info->state); return -EINVAL; } Loading Loading @@ -1054,14 +1054,14 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) pdata = pdev->dev.platform_data; if (pdata == NULL) { if (!pdata) { dev_err(&pdev->dev, "no platform data defined\n"); return -ENODEV; } mtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct pxa3xx_nand_info), GFP_KERNEL); if (mtd == NULL) { if (!mtd) { dev_err(&pdev->dev, "failed to allocate memory\n"); return -ENOMEM; } Loading