Thread (8 messages) 8 messages, 3 authors, 2026-01-01

Re: [PATCH v3 3/3] gpio: zynq: Simplify with device_get_match_data()

From: Linus Walleij <linusw@kernel.org>
Date: 2026-01-01 22:37:25
Also in: linux-aspeed, linux-gpio, lkml

On Fri, Dec 19, 2025 at 1:13 PM Krzysztof Kozlowski
[off-list ref] wrote:
Driver's probe function matches against driver's of_device_id table,
where each entry has non-NULL match data, so of_match_node() can be
simplified with device_get_match_data().

While changing the error message, switch to dev_err_probe() so error
path is a bit simpler.

Signed-off-by: Krzysztof Kozlowski <redacted>
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help