|
@@ -919,7 +919,6 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)
|
|
|
|
|
|
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
|
|
|
if (info == NULL) {
|
|
|
- dev_err(&pdev->dev, "no memory for flash info\n");
|
|
|
err = -ENOMEM;
|
|
|
goto exit_error;
|
|
|
}
|
|
@@ -974,7 +973,6 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)
|
|
|
size = nr_sets * sizeof(*info->mtds);
|
|
|
info->mtds = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
|
|
|
if (info->mtds == NULL) {
|
|
|
- dev_err(&pdev->dev, "failed to allocate mtd storage\n");
|
|
|
err = -ENOMEM;
|
|
|
goto exit_error;
|
|
|
}
|