net: sunhme: Fix region request
authorSean Anderson <seanga2@gmail.com>
Wed, 22 Feb 2023 20:42:41 +0000 (15:42 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Feb 2023 17:58:51 +0000 (09:58 -0800)
commitee0a735fd97ccde766ab557d1fc722c92cebacda
tree1f326fbdc5b56777f060a064917c17b27452998b
parentedea0c5a994b7829c9ada8f5bc762c4e32f4f797
net: sunhme: Fix region request

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

Fixes: 914d9b2711dd ("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>
drivers/net/ethernet/sun/sunhme.c