Staging: Goldfish: goldfish_nand: Fixed all checkpatch errors
PATCH 1/1 Staging: Goldfish: goldfish_nand: Fixed all checkpatch errors
Quoted 1 line
From
37830ddd9548d298c0c846cd36181cdb97ceebd7Mon Sep 17 00:00:00 2001
From: Jake Champlin <[email protected]>
Date: Sat, 4 May 2013 12:50:27 -0400
Subject: [PATCH] Staging: Goldfish: goldfish_nand: Fixed all checkpatch errors
Fixed all checkpatch errors included inside goldfish_nand.c. Checkpatch is now clean for goldfish_nand.c
Signed-off-by "Jake Champlin" <[email protected]>
--- drivers/staging/goldfish/goldfish_nand.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/staging/goldfish/goldfish_nand.c +6 -5
@@ -326,9 +326,10 @@ static int goldfish_nand_init_device(struct platform_device *pdev, (mtd->writesize + mtd->oobsize) * mtd->writesize;do_div (mtd->size, mtd->writesize + mtd->oobsize); mtd->size *= mtd->writesize; -dev_dbg (&pdev->dev, +dev_dbg (&pdev->dev,"goldfish nand dev%d: size %llx, page %d, extra %d, erase %d\n" , - id, mtd->size, mtd->writesize, mtd->oobsize, mtd->erasesize); + id, mtd->size, mtd->writesize, + mtd->oobsize, mtd->erasesize);spin_unlock_irqrestore (&nand->lock, irq_flags); mtd->priv = nand;
@@ -340,7 +341,7 @@ static int goldfish_nand_init_device(struct platform_device *pdev, result =goldfish_nand_cmd (mtd,NAND_CMD_GET_DEV_NAME ,0 , name_len, name);if (result != name_len) { -dev_err (&pdev->dev, +dev_err (&pdev->dev,"goldfish_nand_init_device failed to get dev name %d != %d\n" , result, name_len);return -ENODEV ;
@@ -391,7 +392,7 @@ static int goldfish_nand_probe(struct platform_device *pdev) version =readl (base +NAND_VERSION );if (version !=NAND_VERSION_CURRENT ) { -dev_err (&pdev->dev, +dev_err (&pdev->dev,"goldfish_nand_init: version mismatch, got %d, expected %d\n" , version,NAND_VERSION_CURRENT );return -ENODEV ;
@@ -400,7 +401,7 @@ static int goldfish_nand_probe(struct platform_device *pdev)if (num_dev ==0 )return -ENODEV ; - nand =devm_kzalloc (&pdev->dev,sizeof (*nand) + + nand =devm_kzalloc (&pdev->dev,sizeof (*nand) +sizeof (struct mtd_info ) * num_dev,GFP_KERNEL );if (nand ==NULL )return -ENOMEM ;
Signature · 7 lines
1.8.2.1 -- Jake Champlin [email protected] <MuttClient>
Greg KH
maintainerQuoted 6 lines · On Sat, May 04, 2013 at 12:55:12PM -0400, [email protected] wrote:
From: Jake Champlin <[email protected]>
Fixed all checkpatch errors included inside
goldfish_nand.c. Checkpatch is now clean forgoldfish_nand.cSigned-off-by "Jake Champlin" <[email protected]>
Can you respin this against linux-next as it doesn't seem to apply to my tree at all.
thanks,
greg k-h