diff options
author | Aditya Pakki | 2018-12-28 21:11:19 +0100 |
---|---|---|
committer | Vinod Koul | 2019-01-07 05:20:39 +0100 |
commit | a474b3f0428d6b02a538aa10b3c3b722751cb382 (patch) | |
tree | 15b25a59168454c1e4782c533555ae3bd2be5b95 /drivers/dma/qcom/hidma_mgmt.c | |
parent | Linux 5.0-rc1 (diff) | |
download | kernel-qcow2-linux-a474b3f0428d6b02a538aa10b3c3b722751cb382.tar.gz kernel-qcow2-linux-a474b3f0428d6b02a538aa10b3c3b722751cb382.tar.xz kernel-qcow2-linux-a474b3f0428d6b02a538aa10b3c3b722751cb382.zip |
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: Aditya Pakki <pakki001@umn.edu>
Acked-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/qcom/hidma_mgmt.c')
-rw-r--r-- | drivers/dma/qcom/hidma_mgmt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index d64edeb6771a..681de12f4c67 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c @@ -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"); |