diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c index fc8ad9f13910..4fab47a4a139 100644 --- a/drivers/mtd/devices/elm.c +++ b/drivers/mtd/devices/elm.c @@ -381,7 +381,6 @@ static int elm_remove(struct platform_device *pdev) { pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); - platform_set_drvdata(pdev, NULL); return 0; }