media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 30 Mar 2021 13:04:46 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:59 +0000 (10:22 +0200)
commit54d6fdf66dd48367610a049dd0dde1633b668125
tree4720e50cb31807b6759d46673774d714fb73e82f
parent8329361a3eba8ff899e9c9c3b1f24baa29671b53
media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()

[ Upstream commit a6dd5265c21c28d0a782befe41a97c347e78f22f ]

IS_ERR() and PTR_ERR() use wrong pointer, it should be
sensor->dovdd, fix it.

Fixes: e43ccb0a045f ("media: i2c: Add support for the OV5648 image sensor")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/ov5648.c