int nvhost_gr3d_prepare_power_off(struct nvhost_device *dev) { return nvhost_channel_save_context(dev->channel); }
int nvhost_gr3d_prepare_power_off(struct platform_device *dev) { struct nvhost_device_data *pdata = platform_get_drvdata(dev); return nvhost_channel_save_context(pdata->channel); }