mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
media: ipu6: Drop MMU hardware initialisation in probe()
The MMU hardware is initialised and cleaned up in the runtime PM resume callbacks. Do not do this in probe(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Bingbu Cao <bingbu.cao@intel.com> Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315 Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
779bdaad2a
commit
5b18b3816f
|
|
@ -1070,10 +1070,6 @@ static int isys_probe(struct auxiliary_device *auxdev,
|
|||
if (!isys->csi2)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = ipu6_mmu_hw_init(adev->mmu);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* initial sensor type */
|
||||
isys->sensor_type = isys->pdata->ipdata->sensor_type_start;
|
||||
|
||||
|
|
@ -1125,8 +1121,6 @@ static int isys_probe(struct auxiliary_device *auxdev,
|
|||
if (ret)
|
||||
goto free_fw_msg_bufs;
|
||||
|
||||
ipu6_mmu_hw_cleanup(adev->mmu);
|
||||
|
||||
return 0;
|
||||
|
||||
free_fw_msg_bufs:
|
||||
|
|
@ -1148,8 +1142,6 @@ static int isys_probe(struct auxiliary_device *auxdev,
|
|||
mutex_destroy(&isys->mutex);
|
||||
mutex_destroy(&isys->stream_mutex);
|
||||
|
||||
ipu6_mmu_hw_cleanup(adev->mmu);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user