mtd: davinci_nand: remove redundant mtd_device_unregister
mtd_device_unregister is done in nand_release(), thus no need to call it in nand_davinci_remove(). Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
Родитель
0870066d7e
Коммит
3b36013cf9
|
@ -811,9 +811,6 @@ err_nomem:
|
||||||
static int __exit nand_davinci_remove(struct platform_device *pdev)
|
static int __exit nand_davinci_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct davinci_nand_info *info = platform_get_drvdata(pdev);
|
struct davinci_nand_info *info = platform_get_drvdata(pdev);
|
||||||
int status;
|
|
||||||
|
|
||||||
status = mtd_device_unregister(&info->mtd);
|
|
||||||
|
|
||||||
spin_lock_irq(&davinci_nand_lock);
|
spin_lock_irq(&davinci_nand_lock);
|
||||||
if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME)
|
if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче