driver/kmd/armchina-aipu/aipu.c
/**
 * @armchina_aipu_suspend() - suspend operation for platfom driver provided by ArmChina
 * @p_dev: pointer to the AIPU platform device struct.
 * @state: power state device is entering.
 *
 * This function disables the AIPU clock from SoC level with the disable_clk method
 * registered in SoC probing. SoC vendor can directly register this function to the
 * platfom_driver struct or implements its private xx_aipu_suspend() as a replacement.
 */
@armchina_aipu_suspend() - suspend operation for platfom driver provided by ArmChina
@p_dev: pointer to the AIPU platform device struct.
@state: power state device is entering.

This function disables the AIPU clock from SoC level with the disable_clk method
registered in SoC probing. SoC vendor can directly register this function to the
platfom_driver struct or implements its private xx_aipu_suspend() as a replacement.
@armchina_aipu_suspend () - suspend operation for platfom driver provided by ArmChina @p_dev : pointer to the AIPU platform device struct . @state : power state device is entering . This function disables the AIPU clock from SoC level with the disable_clk method registered in SoC probing . SoC vendor can directly register this function to the platfom_driver struct or implements its private xx_aipu_suspend () as a replacement .
int armchina_aipu_suspend(struct platform_device *p_dev, pm_message_t state)
{
	struct aipu_core *core = platform_get_drvdata(p_dev);
	if (aipu && aipu->soc_ops && aipu->soc_ops->disable_clk)
		aipu->soc_ops->disable_clk(core->dev, aipu->soc);
	return 0;
}
int armchina_aipu_suspend ( struct platform_device * p_dev , pm_message_t state ) { struct aipu_core * core = platform_get_drvdata ( p_dev ) ; if ( aipu && aipu -> soc_ops && aipu -> soc_ops -> disable_clk ) aipu -> soc_ops -> disable_clk ( core -> dev , aipu -> soc ) ; return 0 ; }
@armchina_aipu_suspend() - suspend operation for platfom driver provided by ArmChina
 @p_dev: pointer to the AIPU platform device struct.
@armchina_aipu_suspend () - suspend operation for platfom driver provided by ArmChina @p_dev : pointer to the AIPU platform device struct .