[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191011075705.j5bqw2w6jmcrv5dz@gilmour>
Date: Fri, 11 Oct 2019 09:57:05 +0200
From: Maxime Ripard <mripard@...nel.org>
To: Corentin Labbe <clabbe.montjoie@...il.com>
Cc: catalin.marinas@....com, davem@...emloft.net,
herbert@...dor.apana.org.au, linux@...linux.org.uk,
mark.rutland@....com, robh+dt@...nel.org, wens@...e.org,
will@...nel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-sunxi@...glegroups.com
Subject: Re: [PATCH v3 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine
On Thu, Oct 10, 2019 at 08:23:19PM +0200, Corentin Labbe wrote:
> + ce->reset = devm_reset_control_get_optional(&pdev->dev, "bus");
> + if (IS_ERR(ce->reset)) {
> + if (PTR_ERR(ce->reset) == -EPROBE_DEFER)
> + return PTR_ERR(ce->reset);
> + dev_err(&pdev->dev, "No reset control found\n");
> + return PTR_ERR(ce->reset);
> + }
There's only one reset so you don't need that name.
And I'm not sure why you're using the optional variant, it's required
by your binding.
Maxime
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists