Skip to content

Commit

Permalink
Merge MTD updates into -next
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Norris committed Feb 28, 2015
2 parents 2454225 + e423c90 commit ed446cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,8 @@ static int alloc_nand_resource(struct platform_device *pdev)
int ret, irq, cs;

pdata = dev_get_platdata(&pdev->dev);
if (pdata->num_cs <= 0)
return -ENODEV;
info = devm_kzalloc(&pdev->dev, sizeof(*info) + (sizeof(*mtd) +
sizeof(*host)) * pdata->num_cs, GFP_KERNEL);
if (!info)
Expand Down

0 comments on commit ed446cc

Please sign in to comment.