Commit a474b3f0 authored by Aditya Pakki's avatar Aditya Pakki Committed by Vinod Koul

dmaengine: qcom_hidma: Check for driver register failure

While initializing the driver, the function platform_driver_register can
fail and return an error. Consistent with other invocations, this patch
returns the error upstream.
Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Acked-by: default avatarSinan Kaya <okaya@kernel.org>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent bfeffd15
......@@ -423,9 +423,8 @@ static int __init hidma_mgmt_init(void)
hidma_mgmt_of_populate_channels(child);
}
#endif
platform_driver_register(&hidma_mgmt_driver);
return platform_driver_register(&hidma_mgmt_driver);
return 0;
}
module_init(hidma_mgmt_init);
MODULE_LICENSE("GPL v2");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment