From 8c583533d46bed9b4da9edfdcc9b36d62fdffab6 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 14 Dec 2023 05:31:54 +0000 Subject: [PATCH] drm/amdgpu: Remove second moot switch to set EEPROM I2C address From Luben Tuikov a3049c9a30131639f056a2b3db934c70ff91068a in linux-6.1.y/6.1.68 1bb745d7596d2b368fd9afb90473f3581495e39d in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c index 43568735eca..aeebae67fd8 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -214,15 +214,6 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev, return false; } - switch (adev->ip_versions[MP1_HWIP][0]) { - case IP_VERSION(13, 0, 0): - control->i2c_address = EEPROM_I2C_MADDR_4; - break; - - default: - break; - } - return true; } -- 2.20.1