net: ep93xx_eth: fix mismatch of request_mem_region in remove
authorChuhong Yuan <hslester96@gmail.com>
Thu, 14 Nov 2019 15:43:24 +0000 (23:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:40:50 +0000 (10:40 +0100)
commit697ac1bae0f68de26fd756e3ab1ff29559555eb8
tree7bad5f8a7c13ae81a1171744bf985661c59dd753
parentda0b802943377662b72a9d85d22fe50619b29f27
net: ep93xx_eth: fix mismatch of request_mem_region in remove

[ Upstream commit 3df70afe8d33f4977d0e0891bdcfb639320b5257 ]

The driver calls release_resource in remove to match request_mem_region
in probe, which is incorrect.
Fix it by using the right one, release_mem_region.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/cirrus/ep93xx_eth.c