Re: [PATCH] net: ep93xx_eth: fix mismatch of request_mem_region in remove

From: David Miller
Date: Fri Nov 15 2019 - 15:42:58 EST


From: Chuhong Yuan <hslester96@xxxxxxxxx>
Date: Thu, 14 Nov 2019 23:43:24 +0800

> 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@xxxxxxxxx>

Applied, thanks.

It's a shame that you can't just pass in the thing you got back from
request_mem_region() to free it. And honestly the only thing that makes
calling release_region() wrong is that release_region() doesn't free up
the region object after unlinking it from the tree.