On 08/12/2021 17:40, Biju Das wrote: > If reset_control_deassert() fails, then we won't be able to access > the device registers. Therefore check the return code of > reset_control_deassert() and bail out in case of error. > > While at it replace the parameter "&pdev->dev" -> "dev" in > devm_reset_control_get_exclusive(). > > Suggested-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx> > Reviewed-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> > --- > v1->v2: > * removed the cast operation "PTR_ERR(ret)" -> ret > * Added Rb tag from Philipp. > --- Applied, thanks -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog