]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: mxc: remove dead code after switch to DT-only
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 13 Jan 2025 22:19:11 +0000 (23:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:11 +0000 (12:50 +0100)
commit5934bfaeaffe72864dc03de99adc48693a98cdf5
treec0f64d6c8e7f3a78ec15cf125ce4668291fd4f92
parent8c640dd3d900cc8988a39c007591f1deee776df4
gpio: mxc: remove dead code after switch to DT-only

[ Upstream commit b049e7abe9001a780d58e78e3833dcceee22f396 ]

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.

Fixes: 0f2c7af45d7e ("gpio: mxc: Convert the driver to DT-only")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250113-b4-imx-gpio-base-warning-v1-3-0a28731a5cf6@pengutronix.de
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mxc.c