DF-1910 / fix.diff
diff --git a/sys/dev/drm/amd/amdgpu/amdgpu_acp.h b/sys/dev/drm/amd/amdgpu/amdgpu_acp.h --- a/sys/dev/drm/amd/amdgpu/amdgpu_acp.h +++ b/sys/dev/drm/amd/amdgpu/amdgpu_acp.h @@ -35,6 +35,7 @@ struct mfd_cell *acp_cell; struct resource *acp_res; struct acp_pm_domain *acp_genpd; + struct i2s_platform_data *i2s_pdata; }; extern const struct amdgpu_ip_block_version acp_ip_block; diff --git a/sys/dev/drm/amd/amdgpu/amdgpu_acp.c b/sys/dev/drm/amd/amdgpu/amdgpu_acp.c --- a/sys/dev/drm/amd/amdgpu/amdgpu_acp.c +++ b/sys/dev/drm/amd/amdgpu/amdgpu_acp.c @@ -239,7 +239,7 @@ return -ENOMEM; } - i2s_pdata = kcalloc(3, sizeof(struct i2s_platform_data), GFP_KERNEL); + adev->acp.i2s_pdata = i2s_pdata = kcalloc(3, sizeof(struct i2s_platform_data), GFP_KERNEL); if (i2s_pdata == NULL) { kfree(adev->acp.acp_res); kfree(adev->acp.acp_cell); |