[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201203213334.GB81406@ravnborg.org>
Date: Thu, 3 Dec 2020 22:33:34 +0100
From: Sam Ravnborg <sam@...nborg.org>
To: Tian Tao <tiantao6@...ilicon.com>
Cc: airlied@...ux.ie, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, xinliang.liu@...aro.org,
kraxel@...hat.com, tzimmermann@...e.de, alexander.deucher@....com,
tglx@...utronix.de
Subject: Re: [PATCH drm/hisilicon 2/3] drm/irq: Add the new api to install irq
Hi Tian,
> > + ret = devm_add_action_or_reset(dev->dev, devm_drm_irq_uninstall, dev);
> > + if (ret)
> > + devm_drm_irq_uninstall(dev);
> devm_add_action_or_reset() will call devm_drm_irq_uninstall() if ret is
> != 0. See include/device.h.
>
> I guess that is the "_or_reset" part of the name that can tell us that.
> So you can drop the if condition as it just will cause the code to call
> drm_irq_uninstall() twice.
Noticed this was fixed in v2 - so all is fine here.
Sam
Powered by blists - more mailing lists