On Sat, Jun 5, 2021 at 2:32 PM Yang Yingliang <yangyingliang@xxxxxxxxxx> wrote:They are used to print message before returning gemini_ethernet_port_probe()
Use devm_platform_get_and_ioremap_resource() to simplify(...)
code.
Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
- dmares = platform_get_resource(pdev, IORESOURCE_MEM, 0);Should you not also delete the local variables
- gmacres = platform_get_resource(pdev, IORESOURCE_MEM, 1);
dmares and gmacres? I doubt they are used
after this.
Yours,
Linus Walleij
.