diff options
author | Chen-Yu Tsai <[email protected]> | 2023-07-10 08:51:36 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2023-07-28 10:19:11 +0200 |
commit | 8329d0c7355bfb7237baf09ec979c3e8144d2781 (patch) | |
tree | d778076452b567ccde41646c8b63645674639c44 /scripts/generate_rust_analyzer.py | |
parent | 0cb1d9c845110ce638a43a1417c7df5968d1daa3 (diff) |
media: mtk-jpeg: Set platform driver data earlier
In the multi-core JPEG encoder/decoder setup, the driver for the
individual cores references the parent device's platform driver data.
However, in the parent driver, this is only set at the end of the probe
function, way later than devm_of_platform_populate(), which triggers
the probe of the cores. This causes a kernel splat in the sub-device
probe function.
Move platform_set_drvdata() to before devm_of_platform_populate() to
fix this.
Fixes: 934e8bccac95 ("mtk-jpegenc: support jpegenc multi-hardware")
Signed-off-by: Chen-Yu Tsai <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions