media: hantro: Make struct hantro_variant.init() optional
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 19 Jul 2021 20:52:34 +0000 (22:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 06:41:31 +0000 (08:41 +0200)
commit96f33a5b325e630b31cde9a9393708f569a5f6ac
tree3958453b4da6ccf0360d0aa12bdd0d97661015fc
parent6ad61a7847da09b6261824accb539d05bcdfef65
media: hantro: Make struct hantro_variant.init() optional

The hantro_variant.init() function is there for platforms
to perform hardware-specific initialization, such as
clock rate bumping.

Not all platforms require it, so make it optional.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro.h
drivers/staging/media/hantro/hantro_drv.c
drivers/staging/media/hantro/sama5d4_vdec_hw.c