[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200522151459.GK5670@ninjato>
Date: Fri, 22 May 2020 17:14:59 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Michal Simek <michal.simek@...inx.com>
Cc: Dejin Zheng <zhengdejin5@...il.com>, harinik@...inx.com,
soren.brinkmann@...inx.com, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] i2c: cadence: Add an error handling for
platform_get_irq()
> The change is valid but the question is if make sense to do it in this
> way. Some drivers are using devm_request_irq to do do job.
>
> For example:
> id->irq = platform_get_irq(pdev, 0);
> ret = devm_request_irq(&pdev->dev, id->irq, cdns_i2c_isr, 0,
> DRIVER_NAME, id);
> if (ret)
> return ret;
I like this version better. Maybe we should simply move the
platform_get_irq() line to the devm_request_irq() call?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists