RE: [RESEND PATCH] PM / devfreq: Propagate error from devfreq_add_device()
From: MyungJoo Ham
Date: Mon Nov 06 2017 - 04:02:42 EST
Â
Â
> --------- Original Message ---------
> Sender : Bjorn AnderssonÂ<bjorn.andersson@xxxxxxxxxx>
>Â
> PropagateÂtheÂerrorÂofÂdevfreq_add_device()ÂinÂdevm_devfreq_add_device()
> ratherÂthanÂstaticallyÂreturningÂENOMEM.ÂThisÂmakesÂitÂslightlyÂfaster
> toÂpinpointÂtheÂcauseÂofÂaÂreturnedÂerror.
>Â
> Fixes:Â8cd84092d35eÂ("PMÂ/Âdevfreq:ÂAddÂresource-managedÂfunctionÂforÂdevfreqÂdevice")
> Cc:Âstable@xxxxxxxxxxxxxxx
> Acked-by:ÂChanwooÂChoiÂ<cw00.choi@xxxxxxxxxxx>
> Signed-off-by:ÂBjornÂAnderssonÂ<bjorn.andersson@xxxxxxxxxx>
> ---
> Â
> ResendingÂwithÂChanwoo'sÂack,ÂFixesÂandÂCcÂstable
> Â
> Âdrivers/devfreq/devfreq.cÂ|Â2Â+-
> Â1ÂfileÂchanged,Â1Âinsertion(+),Â1Âdeletion(-)
Acked-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
Â
Â