projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ba8cf9
)
apple-nvme: Release power domains when probe fails
author
Hector Martin
<marcan@marcan.st>
Thu, 13 Feb 2025 16:12:59 +0000
(11:12 -0500)
committer
Keith Busch
<kbusch@kernel.org>
Tue, 18 Feb 2025 15:41:10 +0000
(07:41 -0800)
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/apple.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/apple.c
b/drivers/nvme/host/apple.c
index 1de11b722f049abbc96a6bb62b072ac973b8c4aa..7995f0776bc06bae2f4b45fe7d135ca554d4be61 100644
(file)
--- a/
drivers/nvme/host/apple.c
+++ b/
drivers/nvme/host/apple.c
@@
-1516,6
+1516,7
@@
static struct apple_nvme *apple_nvme_alloc(struct platform_device *pdev)
return anv;
put_dev:
+ apple_nvme_detach_genpd(anv);
put_device(anv->dev);
return ERR_PTR(ret);
}
@@
-1549,6
+1550,7
@@
out_uninit_ctrl:
nvme_uninit_ctrl(&anv->ctrl);
out_put_ctrl:
nvme_put_ctrl(&anv->ctrl);
+ apple_nvme_detach_genpd(anv);
return ret;
}