common: Drop linux/delay.h from common header
[oweals/u-boot.git] / drivers / usb / eth / r8152_fw.c
index f820b16afca6079aaca357506f2dbcf76d8037d6..d564de285f108a79225bd01db5b3f7bcefbc11aa 100644 (file)
@@ -1,11 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
- *
- * SPDX-License-Identifier:     GPL-2.0
  *
   */
 #include <common.h>
+#include <dm.h>
 #include <errno.h>
+#include <linux/delay.h>
+#include "usb_ether.h"
 #include "r8152.h"
 
 static u8 r8152b_pla_patch_a[] = {
@@ -869,10 +871,10 @@ void r8153_firmware(struct r8152 *tp)
        } else if (tp->version == RTL_VER_04) {
                r8153_pre_ram_code(tp, 0x7001);
 
-       for (i = 0; i < ARRAY_SIZE(r8153_ram_code_bc); i += 2)
-               ocp_write_word(tp, MCU_TYPE_PLA,
-                              r8153_ram_code_bc[i],
-                              r8153_ram_code_bc[i+1]);
+               for (i = 0; i < ARRAY_SIZE(r8153_ram_code_bc); i += 2)
+                       ocp_write_word(tp, MCU_TYPE_PLA,
+                                      r8153_ram_code_bc[i],
+                                      r8153_ram_code_bc[i+1]);
 
                r8153_post_ram_code(tp);