diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 15:39:43 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 15:39:43 -0400 |
commit | a1c06ee11f0b83e372c958b165338f579d17e3d4 (patch) | |
tree | f8093d3c053df315a1bcb276a1a4966d22d0475c /drivers | |
parent | 1b0a062be7fccfbf0218a81c98c0e4d380ee23f5 (diff) |
[MTD] [NAND] Fix checkpatch errors in pxa3xx_nand
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 138e219c2304..fceb468ccdec 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c | |||
@@ -18,8 +18,8 @@ | |||
18 | #include <linux/mtd/mtd.h> | 18 | #include <linux/mtd/mtd.h> |
19 | #include <linux/mtd/nand.h> | 19 | #include <linux/mtd/nand.h> |
20 | #include <linux/mtd/partitions.h> | 20 | #include <linux/mtd/partitions.h> |
21 | #include <asm/io.h> | 21 | #include <linux/io.h> |
22 | #include <asm/irq.h> | 22 | #include <linux/irq.h> |
23 | #include <asm/dma.h> | 23 | #include <asm/dma.h> |
24 | 24 | ||
25 | #include <asm/arch/pxa-regs.h> | 25 | #include <asm/arch/pxa-regs.h> |
@@ -494,7 +494,7 @@ static int handle_data_pio(struct pxa3xx_nand_info *info) | |||
494 | info->data_size << 2); | 494 | info->data_size << 2); |
495 | break; | 495 | break; |
496 | default: | 496 | default: |
497 | printk(KERN_ERR "%s: invalid state %d\n", __FUNCTION__, | 497 | printk(KERN_ERR "%s: invalid state %d\n", __func__, |
498 | info->state); | 498 | info->state); |
499 | return -EINVAL; | 499 | return -EINVAL; |
500 | } | 500 | } |
@@ -638,10 +638,10 @@ static inline int is_buf_blank(uint8_t *buf, size_t len) | |||
638 | } | 638 | } |
639 | 639 | ||
640 | static void pxa3xx_nand_cmdfunc(struct mtd_info *mtd, unsigned command, | 640 | static void pxa3xx_nand_cmdfunc(struct mtd_info *mtd, unsigned command, |
641 | int column, int page_addr ) | 641 | int column, int page_addr) |
642 | { | 642 | { |
643 | struct pxa3xx_nand_info *info = mtd->priv; | 643 | struct pxa3xx_nand_info *info = mtd->priv; |
644 | struct pxa3xx_nand_flash * flash_info = info->flash_info; | 644 | struct pxa3xx_nand_flash *flash_info = info->flash_info; |
645 | struct pxa3xx_nand_cmdset *cmdset = flash_info->cmdset; | 645 | struct pxa3xx_nand_cmdset *cmdset = flash_info->cmdset; |
646 | int ret; | 646 | int ret; |
647 | 647 | ||
@@ -1040,7 +1040,7 @@ static void pxa3xx_nand_init_mtd(struct mtd_info *mtd, | |||
1040 | else | 1040 | else |
1041 | this->ecc.layout = &hw_smallpage_ecclayout; | 1041 | this->ecc.layout = &hw_smallpage_ecclayout; |
1042 | 1042 | ||
1043 | this->chip_delay= 25; | 1043 | this->chip_delay = 25; |
1044 | } | 1044 | } |
1045 | 1045 | ||
1046 | static int pxa3xx_nand_probe(struct platform_device *pdev) | 1046 | static int pxa3xx_nand_probe(struct platform_device *pdev) |
@@ -1054,17 +1054,17 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) | |||
1054 | 1054 | ||
1055 | pdata = pdev->dev.platform_data; | 1055 | pdata = pdev->dev.platform_data; |
1056 | 1056 | ||
1057 | if (pdata == NULL) { | 1057 | if (!pdata) { |
1058 | dev_err(&pdev->dev, "no platform data defined\n"); | 1058 | dev_err(&pdev->dev, "no platform data defined\n"); |
1059 | return -ENODEV; | 1059 | return -ENODEV; |
1060 | } | 1060 | } |
1061 | 1061 | ||
1062 | mtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct pxa3xx_nand_info), | 1062 | mtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct pxa3xx_nand_info), |
1063 | GFP_KERNEL); | 1063 | GFP_KERNEL); |
1064 | if (mtd == NULL) { | 1064 | if (!mtd) { |
1065 | dev_err(&pdev->dev, "failed to allocate memory\n"); | 1065 | dev_err(&pdev->dev, "failed to allocate memory\n"); |
1066 | return -ENOMEM; | 1066 | return -ENOMEM; |
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | info = (struct pxa3xx_nand_info *)(&mtd[1]); | 1069 | info = (struct pxa3xx_nand_info *)(&mtd[1]); |
1070 | info->pdev = pdev; | 1070 | info->pdev = pdev; |