[PATCH 3/4] gpio: mxc: remove dead code after switch to DT-only

Andy Shevchenko andy.shevchenko at gmail.com
Tue Jan 14 01:51:17 PST 2025


On Tue, Jan 14, 2025 at 12:19 AM Ahmad Fatoum <a.fatoum at pengutronix.de> wrote:
>
> struct platform_device::id was only set by board code, but since i.MX
> became a devicetree-only platform, this will always be -1
> (PLATFORM_DEVID_NONE).
>
> Note: of_alias_get_id() returns a negative number on error and base
> treats all negative errors the same, so we need not add any additional
> error handling.

This one is good,
Reviewed-by: Andy Shevchenko <andy at kernel.org>

-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list