media: allegro: Fix some NULL vs IS_ERR() checks in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Jun 2020 14:30:07 +0000 (16:30 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jul 2020 10:32:32 +0000 (12:32 +0200)
commitd93d45ab716e4107056be54969c8c70e50a8346d
tree169d0e9f734a427ee9b3d046a72af5eb5aa045b9
parentb820935b35479e823eb6ce133cdbe371dced7e95
media: allegro: Fix some NULL vs IS_ERR() checks in probe

The devm_ioremap() function doesn't return error pointers, it returns
NULL on error.

Fixes: f20387dfd065 ("media: allegro: add Allegro DVT video IP core driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c