[PATCH 50/69] Revert "dmaengine: qcom_hidma: Check for driver register failure"
From: Greg Kroah-Hartman
Date: Mon May 03 2021 - 08:01:24 EST
This reverts commit a474b3f0428d6b02a538aa10b3c3b722751cb382.
Because of recent interactions with developers from @umn.edu, all
commits from them have been recently re-reviewed to ensure if they were
correct or not.
Upon review, this commit was found to be incorrect for the reasons
below, so it must be reverted. It will be fixed up "correctly" in a
later kernel change.
The original change is NOT correct, as it does not correctly unwind from
the resources that was allocated before the call to
Cc: Aditya Pakki <pakki001@xxxxxxx>
Cc: Sinan Kaya <okaya@xxxxxxxxxx>
Cc: Vinod Koul <vkoul@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
drivers/dma/qcom/hidma_mgmt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c
index 806ca02c52d7..fe87b01f7a4e 100644
@@ -418,8 +418,9 @@ static int __init hidma_mgmt_init(void)
- return platform_driver_register(&hidma_mgmt_driver);
+ return 0;