Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1250385

Re: [PATCH] net, can, ti_hecc: fix a run time warn_on.

From Heiko Schocher <hs@denx.de>
Newsgroups linux.kernel
Subject Re: [PATCH] net, can, ti_hecc: fix a run time warn_on.
Date 2015-10-19 09:00 +0200
Message-ID <qlcAh-55u-5@gated-at.bofh.it> (permalink)
References <qlc7g-4wB-25@gated-at.bofh.it> <qlcgW-4Ju-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello Marc,

Am 19.10.2015 um 08:34 schrieb Marc Kleine-Budde:
> On 10/19/2015 08:22 AM, Heiko Schocher wrote:
>> This patch fixes a warning in clk_enable by calling
>> clk_prepare_enable instead.
>
> What about the corresponding clk_disable_unprepare()?

Yes, that should be fixed too, do this in a v2, thanks!

bye,
Heiko
>
> Marc
>
>>
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>> ---
>>
>>   drivers/net/can/ti_hecc.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c
>> index cf345cb..c08e8ea 100644
>> --- a/drivers/net/can/ti_hecc.c
>> +++ b/drivers/net/can/ti_hecc.c
>> @@ -951,7 +951,7 @@ static int ti_hecc_probe(struct platform_device *pdev)
>>   	netif_napi_add(ndev, &priv->napi, ti_hecc_rx_poll,
>>   		HECC_DEF_NAPI_WEIGHT);
>>
>> -	clk_enable(priv->clk);
>> +	clk_prepare_enable(priv->clk);
>>   	err = register_candev(ndev);
>>   	if (err) {
>>   		dev_err(&pdev->dev, "register_candev() failed\n");
>>
>
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] net, can, ti_hecc: fix a run time warn_on. Heiko Schocher <hs@denx.de> - 2015-10-19 08:30 +0200
  Re: [PATCH] net, can, ti_hecc: fix a run time warn_on. Marc Kleine-Budde <mkl@pengutronix.de> - 2015-10-19 08:40 +0200
    Re: [PATCH] net, can, ti_hecc: fix a run time warn_on. Heiko Schocher <hs@denx.de> - 2015-10-19 09:00 +0200

csiph-web