drm/amdgpu: add sw_init to df_v1_7

Submitted by Deucher, Alexander on June 21, 2019, 1:58 p.m.

Details

Message ID BN6PR12MB180927B186CB19A7D5F17008F7E70@BN6PR12MB1809.namprd12.prod.outlook.com
State New
Headers show
Series "drm/amdgpu: add sw_init to df_v1_7" ( rev: 2 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Deucher, Alexander June 21, 2019, 1:58 p.m.
If both init and sw_init are empty, we don't need both.  Just rename the init callback to sw_init.

Alex

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/df_v1_7.c b/drivers/gpu/drm/amd/amdgpu/df_v1_7.c
index 9935371db7ce..335f2c02878f 100644
--- a/drivers/gpu/drm/amd/amdgpu/df_v1_7.c
+++ b/drivers/gpu/drm/amd/amdgpu/df_v1_7.c
@@ -33,6 +33,10 @@  static void df_v1_7_init (struct amdgpu_device *adev)
 {
 }

+static void df_v1_7_sw_init(struct amdgpu_device *adev)
+{
+}
+
 static void df_v1_7_enable_broadcast_mode(struct amdgpu_device *adev,
                                           bool enable)
 {
@@ -111,6 +115,7 @@  static void df_v1_7_enable_ecc_force_par_wr_rmw(struct amdgpu_device *adev,

 const struct amdgpu_df_funcs df_v1_7_funcs = {
         .init = df_v1_7_init,
+       .sw_init = df_v1_7_sw_init,
         .enable_broadcast_mode = df_v1_7_enable_broadcast_mode,
         .get_fb_channel_number = df_v1_7_get_fb_channel_number,
         .get_hbm_channel_number = df_v1_7_get_hbm_channel_number,