diff options
Diffstat (limited to 'drivers/mtd/nand/orion_nand.c')
| -rw-r--r-- | drivers/mtd/nand/orion_nand.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c index a393a5b6ce1..471b4df3a5a 100644 --- a/drivers/mtd/nand/orion_nand.c +++ b/drivers/mtd/nand/orion_nand.c @@ -87,7 +87,6 @@ static int __init orion_nand_probe(struct platform_device *pdev)  	nc = kzalloc(sizeof(struct nand_chip) + sizeof(struct mtd_info), GFP_KERNEL);  	if (!nc) { -		printk(KERN_ERR "orion_nand: failed to allocate device structure.\n");  		ret = -ENOMEM;  		goto no_res;  	} @@ -101,7 +100,7 @@ static int __init orion_nand_probe(struct platform_device *pdev)  	io_base = ioremap(res->start, resource_size(res));  	if (!io_base) { -		printk(KERN_ERR "orion_nand: ioremap failed\n"); +		dev_err(&pdev->dev, "ioremap failed\n");  		ret = -EIO;  		goto no_res;  	} @@ -110,7 +109,6 @@ static int __init orion_nand_probe(struct platform_device *pdev)  		board = devm_kzalloc(&pdev->dev, sizeof(struct orion_nand_data),  					GFP_KERNEL);  		if (!board) { -			printk(KERN_ERR "orion_nand: failed to allocate board structure.\n");  			ret = -ENOMEM;  			goto no_res;  		} @@ -216,7 +214,7 @@ static int orion_nand_remove(struct platform_device *pdev)  }  #ifdef CONFIG_OF -static struct of_device_id orion_nand_of_match_table[] = { +static const struct of_device_id orion_nand_of_match_table[] = {  	{ .compatible = "marvell,orion-nand", },  	{},  };  | 
