[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK9iUCPvmoN4_0jyZ+DP+ROmmoKTpqCoRPgOCKTmjT-o73zW4A@mail.gmail.com>
Date: Sun, 30 Dec 2018 21:34:12 +0300
From: Sinan Kaya <Okaya@...nel.org>
To: Aditya Pakki <pakki001@....edu>
Cc: kjlu@....edu, Andy Gross <andy.gross@...aro.org>,
David Brown <david.brown@...aro.org>,
Vinod Koul <vkoul@...nel.org>,
Dan Williams <dan.j.williams@...el.com>,
linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org, dmaengine@...r.kernel.org,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] dmaengine: qcom_hidma: Check for driver register failure
On Fri, Dec 28, 2018 at 11:11 PM Aditya Pakki <pakki001@....edu> wrote:
>
> 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@....edu>
> ---
Acked-by: Sinan Kaya <okaya@...nel.org>
> drivers/dma/qcom/hidma_mgmt.c | 3 +--
> 1 file changed, 1 insertion(+), 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");
> --
> 2.17.1
>
Powered by blists - more mailing lists