|
@@ -5680,6 +5680,8 @@ static void ata_host_release(struct device *gendev, void *res)
|
|
|
|
|
|
if (host->ops->host_stop)
|
|
if (host->ops->host_stop)
|
|
host->ops->host_stop(host);
|
|
host->ops->host_stop(host);
|
|
|
|
+
|
|
|
|
+ dev_set_drvdata(gendev, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -5902,7 +5904,6 @@ int ata_device_add(const struct ata_probe_ent *ent)
|
|
|
|
|
|
err_out:
|
|
err_out:
|
|
devres_release_group(dev, ata_device_add);
|
|
devres_release_group(dev, ata_device_add);
|
|
- dev_set_drvdata(dev, NULL);
|
|
|
|
VPRINTK("EXIT, returning %d\n", rc);
|
|
VPRINTK("EXIT, returning %d\n", rc);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|