Skip to content

Commit

Permalink
dmaengine: qcom_hidma: Check for driver register failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aditya Pakki authored and vinodkoul committed Jan 7, 2019
1 parent bfeffd1 commit a474b3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/dma/qcom/hidma_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit a474b3f

Please sign in to comment.