On Mon, Jan 30, 2023 at 1:07 PM Yang Yingliang <yangyingliang@xxxxxxxxxx> wrote: > devm_platform_get_and_ioremap_resource() never returns NULL pointer, > it will return ERR_PTR() when it fails, so replace the check with > IS_ERR(). > > Fixes: baef5330d35b ("usb: fotg210: Acquire memory resource in core") > Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> BR Linus Walleij