mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
Merge MTD updates into -next
This commit is contained in:
commit
ed446cc720
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user