media: nuvoton: npcm-video: Fix IS_ERR() vs NULL bug
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 27 Sep 2023 12:39:43 +0000 (15:39 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:45 +0000 (10:55 +0200)
commit5f9fcbf92da901495f2f8b09d2f6df5c2ca83dc5
treebc4a2293c864b60a0d8582c6ef822da9ac579fcd
parent04d19e65137e3cd4a5004e624c85c762933d115c
media: nuvoton: npcm-video: Fix IS_ERR() vs NULL bug

The of_parse_phandle() function returns NULL on error.  It never returns
error pointers.  Update the check accordingly.

Fixes: 70721089985c ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/nuvoton/npcm-video.c