|
@@ -121,10 +121,8 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
|
|
|
|
|
|
/* Allocate memory for MTD device structure and private data */
|
|
/* Allocate memory for MTD device structure and private data */
|
|
sharpsl = kzalloc(sizeof(struct sharpsl_nand), GFP_KERNEL);
|
|
sharpsl = kzalloc(sizeof(struct sharpsl_nand), GFP_KERNEL);
|
|
- if (!sharpsl) {
|
|
|
|
- printk("Unable to allocate SharpSL NAND MTD device structure.\n");
|
|
|
|
|
|
+ if (!sharpsl)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- }
|
|
|
|
|
|
|
|
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
|
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
|
if (!r) {
|
|
if (!r) {
|