On Sun, Jan 29, 2023 at 8:34 AM 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> Good catch! Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij