drm/radeon: remove dead code in ni_mc_load_microcode()
[sfrench/cifs-2.6.git] / drivers / gpu / drm / radeon / ni.c
index 6f231a740ba531d1f646ee665350882593f12f29..9f0881ab3105c683471fec3a0adb42240388024d 100644 (file)
@@ -618,7 +618,7 @@ static const u32 cayman_io_mc_regs[BTC_IO_MC_REGS_SIZE][2] = {
 int ni_mc_load_microcode(struct radeon_device *rdev)
 {
        const __be32 *fw_data;
-       u32 mem_type, running, blackout = 0;
+       u32 mem_type, running;
        u32 *io_mc_regs;
        int i, ucode_size, regs_size;
 
@@ -653,11 +653,6 @@ int ni_mc_load_microcode(struct radeon_device *rdev)
        running = RREG32(MC_SEQ_SUP_CNTL) & RUN_MASK;
 
        if ((mem_type == MC_SEQ_MISC0_GDDR5_VALUE) && (running == 0)) {
-               if (running) {
-                       blackout = RREG32(MC_SHARED_BLACKOUT_CNTL);
-                       WREG32(MC_SHARED_BLACKOUT_CNTL, 1);
-               }
-
                /* reset the engine and set to writable */
                WREG32(MC_SEQ_SUP_CNTL, 0x00000008);
                WREG32(MC_SEQ_SUP_CNTL, 0x00000010);
@@ -683,9 +678,6 @@ int ni_mc_load_microcode(struct radeon_device *rdev)
                                break;
                        udelay(1);
                }
-
-               if (running)
-                       WREG32(MC_SHARED_BLACKOUT_CNTL, blackout);
        }
 
        return 0;