Re: [PATCH] gpio: mb86s7x: remove some dead code in mb86s70_gpio_to_irq()

From: Andy Shevchenko
Date: Wed Oct 23 2024 - 10:59:22 EST


On Wed, Oct 23, 2024 at 11:35:53AM +0300, Dan Carpenter wrote:

...

> I have written more about the history of platform_get_irq() on my blog:
> https://staticthinking.wordpress.com/2023/08/07/writing-a-check-for-zero-irq-error-codes/

FWIW, this patch (see https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git)

commit e13724956849975ef40cbc9898643f3074a1ed8a
Author: Russell King <rmk@xxxxxxxxxxxxxxxx>
Date: Tue Jun 8 02:28:02 2004 -0700

[PATCH] Add platform_get_resource()

This patch adds management of platform device resources to the
device model, allowing drivers to lookup resources, IRQs and DMA
numbers in the platform device resource array. We also add a
couple of functions which allow platform devices and their resources
to be registered.

added it.

--
With Best Regards,
Andy Shevchenko