]> git.baikalelectronics.ru Git - kernel.git/commit
net: sunhme: Fix region request
authorSean Anderson <seanga2@gmail.com>
Wed, 22 Feb 2023 20:42:41 +0000 (15:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:25 +0000 (13:55 +0100)
commitbfb8ade9c1776055cdb6afb6c39cf4b434c20c5e
tree85fabe7a87d0c7a61b0c74eb9987949caa624459
parent6574e173e457722dcb8269a6fa5135874652b44b
net: sunhme: Fix region request

[ Upstream commit 886426e1aab9da5eb964ace77fa52b9c7746fd3a ]

devm_request_region is for I/O regions. Use devm_request_mem_region
instead.  This fixes the driver failing to probe since 503e2412859a
("sunhme: fix an IS_ERR() vs NULL check in probe"), which checked the
result.

Fixes: f000b42388b7 ("sunhme: switch to devres")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230222204242.2658247-1-seanga2@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/sun/sunhme.c