diff options
Diffstat (limited to 'drivers/mtd/nand/orion_nand.c')
| -rw-r--r-- | drivers/mtd/nand/orion_nand.c | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c index 513dc88a05ca..fc5a868c436e 100644 --- a/drivers/mtd/nand/orion_nand.c +++ b/drivers/mtd/nand/orion_nand.c  | |||
| @@ -183,6 +183,10 @@ static int __init orion_nand_probe(struct platform_device *pdev) | |||
| 183 | return 0; | 183 | return 0; | 
| 184 | 184 | ||
| 185 | no_dev: | 185 | no_dev: | 
| 186 | if (!IS_ERR(clk)) { | ||
| 187 | clk_disable_unprepare(clk); | ||
| 188 | clk_put(clk); | ||
| 189 | } | ||
| 186 | platform_set_drvdata(pdev, NULL); | 190 | platform_set_drvdata(pdev, NULL); | 
| 187 | iounmap(io_base); | 191 | iounmap(io_base); | 
| 188 | no_res: | 192 | no_res: | 
| @@ -214,7 +218,7 @@ static int __devexit orion_nand_remove(struct platform_device *pdev) | |||
| 214 | 218 | ||
| 215 | #ifdef CONFIG_OF | 219 | #ifdef CONFIG_OF | 
| 216 | static struct of_device_id orion_nand_of_match_table[] = { | 220 | static struct of_device_id orion_nand_of_match_table[] = { | 
| 217 | { .compatible = "mrvl,orion-nand", }, | 221 | { .compatible = "marvell,orion-nand", }, | 
| 218 | {}, | 222 | {}, | 
| 219 | }; | 223 | }; | 
| 220 | #endif | 224 | #endif | 
