Re: [PATCH] Revert "gpio: eic-sprd: Use devm_platform_ioremap_resource()"

From: Linus Walleij
Date: Thu Apr 02 2020 - 03:40:20 EST


On Wed, Apr 1, 2020 at 11:59 AM Baolin Wang <baolin.wang7@xxxxxxxxx> wrote:

> This reverts commit 0f5cb8cc27a266c81e6523b436479802e9aafc9e.
>
> This commit will cause below warnings, since our EIC controller can support
> differnt banks on different Spreadtrum SoCs, and each bank has its own base
> address, we will get invalid resource warning if the bank number is less than
> SPRD_EIC_MAX_BANK on some Spreadtrum SoCs.
>
> So we should not use devm_platform_ioremap_resource() here to remove the
> warnings.
>
> [ 1.118508] sprd-eic 40210000.gpio: invalid resource
> [ 1.118535] sprd-eic 40210000.gpio: invalid resource
> [ 1.119034] sprd-eic 40210080.gpio: invalid resource
> [ 1.119055] sprd-eic 40210080.gpio: invalid resource
> [ 1.119462] sprd-eic 402100a0.gpio: invalid resource
> [ 1.119482] sprd-eic 402100a0.gpio: invalid resource
> [ 1.119893] sprd-eic 402100c0.gpio: invalid resource
> [ 1.119913] sprd-eic 402100c0.gpio: invalid resource
>
> Signed-off-by: Baolin Wang <baolin.wang7@xxxxxxxxx>

Patch applied.

Yours,
Linus Walleij