Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93036
b: refs/heads/master
c: a1c06ee
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed Apr 22, 2008
1 parent 6c0afd4 commit debe3d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b0a062be7fccfbf0218a81c98c0e4d380ee23f5
refs/heads/master: a1c06ee11f0b83e372c958b165338f579d17e3d4
18 changes: 9 additions & 9 deletions trunk/drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -638,10 +638,10 @@ static inline int is_buf_blank(uint8_t *buf, size_t len)
}

static void pxa3xx_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
int column, int page_addr )
int column, int page_addr)
{
struct pxa3xx_nand_info *info = mtd->priv;
struct pxa3xx_nand_flash * flash_info = info->flash_info;
struct pxa3xx_nand_flash *flash_info = info->flash_info;
struct pxa3xx_nand_cmdset *cmdset = flash_info->cmdset;
int ret;

Expand Down Expand Up @@ -1040,7 +1040,7 @@ static void pxa3xx_nand_init_mtd(struct mtd_info *mtd,
else
this->ecc.layout = &hw_smallpage_ecclayout;

this->chip_delay= 25;
this->chip_delay = 25;
}

static int pxa3xx_nand_probe(struct platform_device *pdev)
Expand All @@ -1054,17 +1054,17 @@ 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;
}
}

info = (struct pxa3xx_nand_info *)(&mtd[1]);
info->pdev = pdev;
Expand Down

0 comments on commit debe3d4

Please sign in to comment.